❤️ Step 8: Keep Your Pet Alive

🌟 What's New?

Now that your pet has needs, YOU have to take care of it! Let's connect the player actions to the pet's stats so you can keep it alive.

🛠️ What to Do

Update your previous code to change the variables: * Touch logo = feed pet 🍔 (change Hunger by 1) * Shake = wake pet/play ⚡ (change Happiness by 1) * Rest in dark = regain energy 🌙 (change Energy by 1)

Leave a screenshot of your updated interaction code here: Insert Keeping Alive Code Here

🏆 Challenge!

  • What happens if you overfeed your pet (Hunger goes above 10)? Add an if block to make it sick! 🤢