Lakiajo / Tamagotchi

0 stars 0 forks source link

Setup Sleep Module #2

Open Lakiajo opened 5 years ago

Lakiajo commented 5 years ago

User Story

As a user, I should be able to see a sleep component and press a button to make my Tamagotchi nap or deep slumber for points.

AC

This module will appear in the lower right quad AND will have a private variable called Energy

Development

Lakiajo commented 5 years ago

The Sleep component should appear in the lower right quadrant. It should have a private variable called energy. This variable should be set to 50 on page load. This module should have 2 buttons. One should be for a nap and should add 50 to energy when pressed. The other button should be for a deep slumber and add 60 to sleep when pushed.

The quadrant should display the name, energy score, and the two buttons. Each time a button is clicked the quadrant should be re-drawn to show the correct energy score. The Energy score should NEVER be larger than 100.