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

  Numbers that can be calculated and have meaningful results

Numbers that can be calculated and have meaningful results

  Write gui program as subclass of jframe

Write a GUI program as subclass of JFrame. It should contain the following: Labels At the top (column headings): Meal, Quantity, Cost, At the left: label for each mea.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Implement a menu-driven program for a hardware store

Perform a sales transaction - allow several hardware items to be purchased Remove a sales transaction based on invoice number and Edit a sales transaction by changing the hardware item's barcode and/or quantity purchased

  Create a state diagram for the state of a horse from

Create a state diagram for the state of a horse from arrival at the racecourse to departure - In one or more UML class diagrams, document your classes

  Write a program that counts the number of lines characters

Your mission, should you choose to accept it, is to plot the top 20 characters with the most lines of dialogue in the script in a bar plot.

  Explain reverse, sort and binary search

Because the C# array is an object member of the Array class it also comes with a number of built-in methods such as Reverse, Sort and Binary Search. You can use the Reverse method

  Design employee objects-display each object-s yearly salary

Design two employee objects and display each object's yearly salary. Then provide each employee 10% raise and display each Employee's yearly salary again.

  Write a statement that prints the message recall

Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. Given a variable modelYear - Write a statement that prints the message "Recall" to standard output if the value of modelYear falls within those two ranges.

  Identify advantages to using oop as compared to using pp

Identify at least one (1) advantage to using event-driven programming, as compared to using purely procedural programming.

  A brief descriptionof the given project

A brief description, this is basically for my school final year project. So it need not to be very professional. I just need the outcome to be something like the ppt slides will do.

  Generating data with a free pascal program

HW3 is about generating empirical data using Free Pascal (either using the Free Pascal IDE or the Lazurus system) and the function given by the language.

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