Tomogatchi Pet
This week we built our own digital pet using the Makecode editor and the BBC Microbit
When we start our program, we set a tired face and play a sound.
In our forever loop, we set up a timer to count up in seconds
When the timer get to 10 a s ad face will appear
When the timer gets to 20 we get the sleepy face
However we can interact with our pet by pressing the logo to show a beating heart
We can also shake our pet, this will make it smile and play a happy tune
But if we shake our pet more than 3 times it will get angry!
Yes out the code below in the simulator and add some more functionality