Micro:Pets

Tamagotchi is a key chain sized virtual pet simulation game. The goal is to keep the pet alive by feeding it when it is hungry and healing it when it is sick.

We are going to make a simplified version where your animal can become hungry or tired. You will take care of the animal by hitting the A or the B buttons

Variables we will need to Start
    Happy = true
    Hungry = false
    Dead = false
    Unhappy timer  = 100
    Eye Movement State = 0
    Mood Controller =500
    

Eye Movement: When the pet is happy we want his eyes to occasionally glance left or right.

Forever
    Eye Movement Chance = random  number between 0  and 100
    //I am going to abbreviate this as EMC
    
    If EMC <= 10
        set Eye Movement State = 2
        Else If EMC  > 10 AND <=20 
            set Eye Movement State = 1
            Else
                set Eye Movement State = 0
                
    

This entire assignment was based on curriculum found at https://makecode.microbit.org/courses/csintro/making/project and https://static1.squarespace.com/static/533a5f1be4b00bb34469c085/t/5ae6f3c00e2e72dfd92a15dd/1525085122048/Tamagotchi.pdf

Last updated