Cat & Mouse

This project comes from Joe Haigโ€™s Code Club Resources, reused here with permission.

Move a cat around the screen with the arrow keys, chase down scampering mice, and dodge flying tennis balls!


๐Ÿ”„ Step 1: Remix the Starter Project

Open the starter project at scratch.mit.edu/projects/1267587027 and click Remix to make your own copy. Donโ€™t forget to give it a new name!

The starter project has four sprites:

  • the cat, which the player will move with the arrow keys
  • the mouse, which the cat will try to catch
  • a tennis ball, which will fly around the screen and the cat has to avoid
  • a message to show that the game is over

This game will use clones so that there will be lots of mice to catch and lots of tennis balls to avoid. Clones let Scratch make lots of copies of the same sprite.


๐Ÿ“– Step 2: Follow the instructions

The rest of the steps are in the worksheet below - work through it one step at a time.

๐Ÿ“„ Open the instructions (PDF)


๐Ÿค” Challenges

  • Can you keep track of how many mice the cat has caught?
  • Can you make the mice move at different speeds?
  • Can you make new mice appear at random instead of every 2 seconds?
  • Can you make the tennis balls disappear when they hit the cat?
  • What else can you think of?

Worksheet by Joe Haig, Code Club Resources, licensed CC BY-NC-SA 4.0. Used with permission.