Introduction: Cat and Mouse Game on Robbo Lab

About: ROBBO Company – developer and producer of robotic EdTech sets. 🤖ROBBO Class products are a solution for educational institutions that includes a set of equipment, software and methodological materials for…

In this project, students will create a game on the Robbo Scratch platform using a laboratory.

The goal of the game is to score as many points as possible while running away from the cat.

Supplies

In the process of creating the game , the following components of the Robot Scratch development environment were involved:

  • Movement
  • Appearance
  • Data
  • Events
  • Management
  • Sensors
  • Operators

Step 1: How to Game?

    1. Playing with the mouse, you need to score as many points as possible, control is implemented both on the keyboard and in the laboratory.

    2. To help the player, during the game, lives and scratches will appear on the map, allowing you to freeze the cat for a while.

    3. At the end of the game, the laboratory will start flashing LEDs and playing a melody.

    Step 2: Work From a Student's Point of View

    "First I think about how to control a sprite using the keyboard and the lab, how to create sprites. I understand that it is necessary to program 4 keyboard buttons and 4 laboratory buttons to move forward-backward and turn left-right."

    1. Firstly, we split into pairs, because we had to create 3 sprites and write code for them.
    2. Secondly, I am creating sprites of a cat that will chase a mouse, a mouse, and a ball that will need to be collected.
    3. Thirdly, I am writing code for a cat / mouse with the ability to control from the keyboard and buttons of the laboratory, and a ball.
    4. Next, we introduce two global variables. For the mouse not to run into the field of counting and lives, we created another sprite - a boundary line, and programmed it so that the mouse could not run behind it.
    5. We create a sprite for the possibility of restoring life and program it, when in contact with the mouse, the value of the variable responsible for life will increase by 1.
    6. At the last stage, we need to help the player create a sprite that will freeze the cat for a while.