This is a simple Virtual Pet that shows how broadcasts can be used to make buttons work. The character has three attributes: HUNGER, BOREDOM and ENERGY. FEED him if he gets too hungry, make him PLAY if he's bored and leave him alone to let him recover energy. The play button reduces boredom but also reduces energy and increases boredom. The feed button reduces hunger and increases energy. The character won't be able to play if his energy drops too low. Other interesting things: The buttons have three states (normal, hover and pressed). The Ball animation uses am algorithm to make it bounce and squash. The clock animation is scaled so that the hand spins more slowly the slower the game is running. Things to add: Change the HUNGER, BOREDOM and ENERGY variables to display as animating on-screen bars.