Code Monkey home page Code Monkey logo

w04d02_lab_oops_js's Introduction

GA Logo

Tomagotchi Mini-Project

Description

Let's use our front-end web development skills to create a "living" pet! We'll use HTML, CSS, and JavaScript/jQuery to interact with our pet.

Requirements

  • Create a repo for your tomagotchi pet
  • make a commit after you finish each one of the following
  • Create a Class (JS Class, look at your notes if your forget) for your tomagotchi
  • Instatiate your Tomagotchi
  • Display a character of your choice on the screen to represent your pet
  • Display the following metrics for your pet: (in chrome console)
  • Hunger (1-10 scale)
  • Sleepiness (1-10 scale)
  • Boredom (1-10 scale)
  • Age
  • Add functions to the screen to feed your pet, turn off the lights, and play with your pet. (i.e. be able to call feed() in chrome console and then log the pet to see the values change)
  • Add the ability to name your pet.
  • Style the page.
  • Increase your pet's age every x minutes
  • Increase your pet's Hunger, Sleepiness, and Bored metrics on an interval of your choosing.
  • You pet should die if Hunger, Boredom, or Sleepiness hits 10.
  • Morph your pet at certain ages.
  • Animate your pet across the screen while it's alive.

Extras

  • Change from the console to the DOM, make buttons to call the functions and update the view of tomagotchi's stats
  • Have your tomagotchi give birth to baby tomagotchi...
  • ...with special powers (extend the class)!
  • Add an excercise() method to your tomagotchi, that affects certain properties
  • Add anything you can think of... use your imagination!

w04d02_lab_oops_js's People

Contributors

i-am-ebere avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.