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
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
|