[Solved] Comp 484 Project 2-Gigapet JavaScript

$25

File Name: Comp_484_Project_2-Gigapet_JavaScript.zip
File Size: 348.54 KB

SKU: [Solved] Comp 484 Project 2-Gigapet JavaScript Category: Tag:
5/5 - (1 vote)

In this project you are going to create the functionality and UI for a simple Giga Pet game.

Requirements: To complete this project you will add to the starter code provided. You may use glitch or any editor that you prefer. For this project you can use the JQuery library. You may edit the structure of the provided HTML and CSS to better fit your preferred style. You may use lecture slides and the past hws for sample code but make sure to make it your own.

The purpose of this project is to make sure you have an understanding of JavaScript arrays, objects, click events on an element, and how to change properties in elements.

Functionality:

  • Create a pet_info object with keys name, weight, happiness and set initial values. Set this equal to variable pet_info
  • Add behavior to buttons When your pet receives a treat, add to its happiness and weight. When your pet exercises, reduce its happiness and weight. When your pet plays, add to its happiness and reduce its weight
  • Fix key bug to make sure keys cant go below zero (use conditional)
  • Add a new action (button, key in pet_info, in HTML)
  • Add a new behavior that correlates with the new button you added. You can add it below the happiness.
  • Add a notification after each button press with a comment from your pet.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Comp 484 Project 2-Gigapet JavaScript
$25