Tamagotchi
This application mimics the tamagotchis or 'virtual pets' of the 1990s.
-
A user should be able to wake up the tamagotchi from its million light year sleep and play.
-
A user should be able to feed the tamagotchi a meal.
-
A user should be able to feed the tamagotchi a snack.
-
A user should be able to see its health meter.
-
A user should be able to see the tamagotchi's happiness meter.
-
A user should be able to play with their tamagotchi to increase its happiness.
-
A user should be able to put their tamagotchi to sleep, restoring happiness.
- A user should be able to overfeed it until it refuses to eat.
- The tamagotchi should poop at a random intervals.
- The tamagotchi should get sick at random intervals.
- A user should be able to give it medicine to restore its health.
Spec | Input | Output |
---|---|---|
Tamagotchi will start with a health and happiness meter of 100 | Click 'Create' | Health Meter: 100, Happiness Meter: 100 |
Every second, health will decrease by 1 | 5 seconds pass | Health Meter: 95 |
Every 5 seconds, happiness will decrease by 1 | 5 seconds pass | Happiness Meter: 99 |
If you feed the tamagotchi a meal, its health will increase by 25 | Click 'Meal' | Health Meter: 125 |
If you feed the tamagotchi a snack, its health will increase by 10 | Click 'Snack' | Health Meter: 110 |
If you play with the tamagotchi, its happiness will increase by 1 and its health will decrease by 1 | Click 'Play' | Health Meter: 99, Happiness Meter: 101 |
If health reaches 0, the tamagotchi will die and you can no longer feed it | Click 'Meal' | Health Meter: 0 |
Run the following commands in Terminal:
$ git clone
this repository$ cd tamagotchi
$ npm install
$ bower install
$ gulp build
$ gulp serve
- Sleep gif does not disappear when feeding or playing with the tamagotchi.
If you have issues, questions, ideas, or concerns, please contact Margaret. Feel free to make a contribution to the code.
- JavaScript
- Node
- Bower
- Jasmine
- Karma
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry and Riki Montgomery