← Back to Computer Science
Standard 5 · Computer Science Course E · Lesson 6 ⏱ 45 minutes 🌱 0 beans

🎮 Game Design

Your progress0 of 7 parts done · 0%
⏱ 5 minutes

Part 1 · Warm Up: Read a Sprite Scene

🎯 Today I can…

Through a penguin scene, word cards, a strawberry demo, the Code.org levels and the Game Scene Builder, you will be able to:

  • create a new sprite with a chosen costume at a chosen location.
  • create a group of sprites with one block.
  • control one sprite from a group with an event, while the other sprites stay the same.

🐧 Sprite

An object on the screen with a location, size, and appearance.

🔁 Behavior

An action a sprite performs continuously until it is told to stop.

⚡ Event

An action, like a key press, that causes something in your program to happen.

Press Run to see the scene move.

💬 How would you describe this sprite scene?

If you wanted someone to create this scene on a computer, what instructions would they need?

👆 Tap to finish the sentences.

📝 The instructions

  • Create a blue background
  • Make a penguin at the bottom
  • Make a fire box at the top right
  • Make the penguin begin moving right and left

🧩 The code

🔍 Compare the instructions with the code. What do you notice?

🔢 Code order

Why can the block “sprite penguin begins patrolling” NOT go before the block “make new penguin sprite”?

🗂 Sort it! Property, behavior or event?

A sprite has properties, such as its colour, size, location and costume. Choose for each one. Then press Check my sorting.

⏱ part of Warm Up

Part 2 · Today’s Vocabulary

Tap each card to flip it. Read the meaning and the example, then flip it back and say the meaning in your own words.

Orange cards are extra words you will see on the Sprite Lab screen today.

⏱ 5 minutes

Part 3 · Lots of Sprites and Events

⚡ How do events work?

  1. The user presses a key on the keyboard.
  2. The keyboard sends a signal to the computer.
  3. The computer makes a decision based on the code.
  4. The computer updates the display.

Arrow keys are one way to make a program interactive. A user can also click a button on the screen or move the mouse.

Press Run to start the program.

Choose the blocks

The program

runs right away event (waits) sprite behavior

💡 Remember!

Event blocks do not snap into your main program. They create little programs of their own.

🧰 The mini-toolbox

An event block has a mini-toolbox that opens when you click the +. In a when clicked event it holds the clicked sprite block. Drag it into a block inside the event to give an instruction to only the sprite that was clicked. A when touches event holds subject sprite and object sprite instead.

Predict, then test

Choose your prediction. Then use the blocks above to test it before you press Check.

⏱ 30 minutes

Part 4 · Game Design on Code.org

Goal: Learn the two big ideas of Sprite Lab: sprites and behaviors. Then make your sprites interactive with events.

Follow the instructions on each level, finish it, then tick the box. In Level 15, choose from 5 activities and complete as many as you can.

Sign in to Code.org with your class login first. Open the whole lesson on Code.org ↗

🙋 Stuck?

  1. Click the light bulb for a hint.
  2. Read the feedback in the yellow box under the instructions.
  3. Look back at Part 3 for events and the clicked sprite.
  4. Ask your partner, then use 🙋 I need help.

📶 Code.org will not load?

Tell Mr. EdLo straight away. Part 5: Game Scene Builder works without the internet. It is always open, so tap it in the part buttons and practise there while you wait.

⏱ practice & free play

Part 5 · Game Scene Builder

Here is a program with one penguin. Build your own game scene with new sprites and a group of sprites (use the grid to choose exactly where they go), then press ▶ Run. Finish all 5 challenges!

Press Run to start the program.

🏆 Challenges

    My program

    ⏱ 5 minutes (then the quiz)

    Part 6 · Wrap Up: Which Block Is Best?

    🧩 Three ways to make sprites

    There are often many different ways to program the same thing. The best solution is the one that creates the shortest, most efficient program.

    1. Which block would you use? 👆 Tap to finish the sentences.

    2. Look back at today’s three goals. How did it go?

    3. ✏️ Type ONE short sentence: what did you build in your game scene?

    Example: “I made a group of gems and a frog, and a gem spins when I click it.”

    Part 7 · Lesson Quiz

    10 questions · You need 7 out of 10 (70%) to pass. If you do not pass, review the lesson parts named in your feedback and try again. Every attempt goes to Mr. EdLo’s record book.