I’m starting to introduce code for my girls, they are 7 and 5 years old. One idea to create interest was brainstorming game ideas that they could play together and show their friends.
We built it! You can play it yourself here: https://josecoelho.github.io/fox-escape
Check out the code on github.
Gameplay
- Player 1 (Fox): Collect food while avoiding being seen by hunters. The fox can hide temporarily to avoid detection.
- Player 2 (Dragon): Protect the fox by shooting fireballs at hunters.
- Hunters: Computer-controlled characters that patrol the map and chase the fox if spotted.
- Food & Poo: When the fox eats food, it creates poo. Hunters that step in poo get stuck for 5 seconds.
- Score: Earn points by collecting food, defeating hunters, and getting hunters stuck in poo.
This was a fun experiment, and the girls could type commands in the computer, learn about git, and had the opportunity to design their first game.
Building process
We decided to use Claude Code so they can see results straight away and be able to have some fun.
The prompt for the game was created using ChatGPT, and the sprites were generated with the help of ChatGPT, creating pixel art from their drawings.