Create a playable digital pet

Assignment Help Programming Languages
Reference no: EM132713767

The Task:

Create a playable digital pet with:
• an SVG representation of the digital pet
• a text display area for messages
• a text display area for your pets food points
• an interface for starting/restarting/controlling the game actions
Each time the game is started, your pet should have 60 points, and an interval of 1000ms. The pet dies if it runs out of food. Your pet should compliment the player by name(dynamic name input, no hardcoding), have variable metabolism, and eat random food with a chances of getting food poisoning(dependant on the food values). The pet must have an animated face with 4 states(neutral happy, angry, sad), and a talk animation.
All phrasing, art, code, and interfaces must be unique for each student. Use ES6 Class structure to make your project.
Create The Interface:
The Interface for your game must include:
Create The Interface:
The Interface for your game must include:
An Area for displaying the pet
A text entry field for taking in a name
An area fir the display of game action text. This area will show:
Any food the pet eats, whether they lose or gain health points, and how many points are gained/lost
The mood phrase of the pet
Any compliment the pet gives, with the name in the compliment coming from the text entry field
An area for the display of the pets food points
This area must update each time the number of food points for the pet changes
must stop updating when the pet runs out of food points
An area with clickable controls for:
starting/restarting the game
getting the pet to compliment the user
getting the pet to eat a random food
speeding the pets metabolism
slowing the pets metabolism
a control for each mood of the pet(happy, angry, sad, jokey)

Create The Data:

the name of the data file that will be loaded via a fetch command in the class
Add the following functions to the Class
• a function for speeding the pets metabolism(name is up to you)
• a function for slowing the pets metabolism(name is up to you)
• a function for feeding the pet a random food from your data
o use the chance of food poisoning in the food data. Compare it to a random number to see if the pet has food poisoning
n if the pet has food poisoning, remove the a number of points equal to the food points from the pets health
n if the pet did not get food poisoning, add the number of points the food contained to the pets health
• a function that takes in a name and substitutes the holder text in a random compliment phrase with the name.
Add functions for controlling animation to the Class
• a function for starting the mouth moving
• a function for stopping the mouth from moving
• a function for making the pets face tween to the happy face
• a function for making the pets face tween to the sad face
• a function for making the pets face tween to the angry face
• a function for making the pets face tween to the neutral face
Pet Behaviour Guidelines
• When the pet runs out of food the game ends, as well as all intervals and timers
• When the pet says something happy, compliments, successfully eats a food, or tells a joke, it:
m shows a happy face and does a talk animation, then returns to neutral
• When the pet says something sad or gets food poisoning, it:
m shows a sad face and does a talk animation, then returns to neutral
• when the pet says something angry, it:
m shows an angry face and does a talk animation, then returns to neutral

Reference no: EM132713767

Questions Cloud

Determine the number of units Baker sold : During FY 2018, Baker Company reported sales of $400,000, a contribution margin of $8.00 per unit, Determine the number of units Baker sold
Global environment of business : Both Germany and Finland, among a large number of other nation states, have far more government regulations of business and much higher tax rates
Company analysis on vestas : How can Vestas continue its innovation through its network? Explain with the theories to prove the statement.
Discuss a hypothetical cash flow statement of your business : Discuss a hypothetical cash flow statement of your business and give examples of operating activities, investment activities and financing activities
Create a playable digital pet : Create a playable digital pet - Each time the game is started, your pet should have 60 points, and an interval of 1000ms
Explain the use of modern awards in workplaces : Outline the minimum entitlements of National Employment Standards that must be provided to all employees.
Methadone and needle exchange programs : Investigate the use of methadone, methadone clinics, and needle exchange programs to combat the effects of heroin use.
Describe management responsibility within the organization : Describe management's responsibility within the organization. Compare and contrast the three management roles and skills within the organization and explain why
Survey mckinsey 2020 march : Based on the latest survey results about emerging markets, what opportunities should your current company or you as a student be looking into in the near future

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd