Scratch Game
60 mins
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Shark Tank

In this lesson we will create a shark tank game. You will control a shark using the arrow keys on your keyboard and make the shark chase other sea creatures!

Teacher Notes Lesson Files

Live Class Feed

This is a live feed of the latest activity by your students on this lesson. It will update in real-time as they work on the lesson.
Load previous activity

    1 - Create a new Scratch project

    Create a new Scratch project and delete the cat sprite by right clicking on the cat and then clicking on the 'delete' option in the menu that appears.

    https://scratch.mit.edu


    2 - Add an underwater backdrop

    First let's add an underwater backdrop to our project from the backdrop library. Follow these steps to add in an underwater backdrop:

    1. Click the Choose backdrop from library button (highlighted in yellow in the image on the right).
    2. Find the 'underwater3' backdrop.
    3. Select the backdrop.
    4. Click OK.


    3 - Add a fish sprite

    Now let's add a fish sprite from the sprite library. Follow these steps to add the fish sprite:

    1. Open the sprite library (by clicking the sprite library button highlighted in yellow in the figure on the right)
    2. Scroll down and find the 'Fish1' sprite.
    3. Select the sprite by clicking on it.
    4. Click 'OK' to add it to your project.


    4 - Add a shark sprite

    Now add a shark sprite from the sprite library. Follow these steps to add the shark sprite:

    1. Open the sprite library (by clicking the sprite library button highlighted in yellow in the figure on the right)
    2. Scroll down and find the 'Shark' sprite.
    3. Select the sprite by clicking on it.
    4. Click 'OK' to add it to your project.


    5 - Program the fish

    Now let's program the fish to swim around the tank. We'll also give the fish some instructions to shrink a little bit.

    Click on the fish sprite in the sprite list (below the stage area) and then add the following code to the fish:

    1. events when clicked 
    2. looks set size to 50 % 
    3. looks show 
    4. motion set rotation style [left-right] 
    5. control forever 
      1. motion move 2 steps 
      2. motion if on edge, bounce 

    Next we will program the fish to disappear if the shark touches it! Add the following code to the fish:

    1. events when clicked 
    2. control forever 
      1. control if then 
        (put sensing touching [Shark] as the condition)
        1. looks hide 

    Unlock the Full Learning Experience

    Get ready to embark on an incredible learning journey! Get access to this lesson and hundreds more in our Digital Skills Curriculum.

    Copyright Notice
    This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.

    Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more