YOUR ROUND VIRTUAL PET
JAVASCRIPT , MICRO-BIT
VIRTUAL PET DESCRIPTION
ID2116 | GROUP PROJECT BY E IAN & CLAUDIA | APRIL 2021
A constantly hungry, bulbous pet that grows in size as you feed it. It goes through several states: Hungry, Neutral, Fat, and Mega Fat. When the pet is hungry, an LED alarm blinks to remind you to feed it. Press "B" and shake to start feeding, causing the pet to gradually grow from hungry (small) to neutral (normal) to full (fat). If you overfeed it beyond its capacity, the pet will explode!
Don't forget to keep feeding! If you stop, the pet will gradually shrink and eventually become hungry again.
Additionally, you can switch the "feeding" mode to "showering" by pressing "A" and tilting the micro bit to the right to shower the pet. Shine a light onto the micro bit to dry the pet – the brighter the light, the drier it gets!
Have fun with your very own virtual pet!
CHECK OUT THE VIDEO BELOW
*Example of Javascript
JAVASCRIPT
https://preview.p5js.org/clawwdeerr/present/DKFy41bcP
https://editor.p5js.org/clawwdeerr/sketches/DKFy41bcP
MICROBIT
https://makecode.microbit.org/95031-76345-91222-98637
https://makecode.microbit.org/54352-01883-53610-99861