Week 3 · Lesson 1 · 55 minutes

Build collection and a clear win

I can build, test and explain a pickup event and win condition.

Planned lesson. Follow your teacher’s teaching order.

Task steps and checks

Open your own version

  1. Open your saved game with a moving player and find the first step of your Week 2 plan. If movement does not work yet, repair it before adding Food. Keep the earlier editable PNG.

Set up the game

  1. In on start, set score to 0 and life to 3. Create Food at x 140, y 60. Outside on start, add the Player overlaps Food event. Overlap means two sprites touch; a sprite is an object on the screen.
Follow the arrows
  1. Player touches Food
  2. +1 point
  3. Target reached?
  4. WIN or move Food away

One touch adds one point

  1. Inside the overlap event, change score by 1. Then check the new score: if score ≥ 5, end with WIN. Use your approved target if different. Put the check after adding the point, so the winning touch counts.

Move the touched Food

  1. After the win check, if the game continues: if sprite x < 80, put otherSprite at x 140, y 60; otherwise put it at x 20, y 60. sprite is the Player; otherSprite is the Food touched. Moving it away stops one long touch scoring again and again. See block reference 2, p24.

Run three checks

  1. Try one pickup, the winning pickup and a restart. Record what you expected and actually saw on page 7. Example only: score 4 → one pickup → score 5 and WIN. A failed check tells you what to fix.

Ready check

Check your result: Point to the event, the score change and the win condition. Save a new editable PNG and keep the previous version. Write what you finished and what you will do next.

Revised weekly handout pages: 7.

Materials

Individual student workbook · Computer with MakeCode Arcade Blocks and simulator · Individual saved project PNG and backup folder · Block reference 2, workbook page 24

Resources

Vocabulary

overlap
When two sprites touch.
condition
A true-or-false check that decides what happens.

See it

One touch, one point, then a win checkScreen: 160 × 120PlayerFoodx 140, y 60x 20, y 60Food moves awayPlayer overlaps Foodchange score by 1score ≥ 5: game over WINotherwise: move Food away
When Player touches Food, the overlap event runs once: the score goes up, the win check runs, and Food moves to the other side so one long touch cannot score again.

Watch

Watch how sprite kinds and an overlap event work together. Your game uses the same idea with your own sprites and numbers.

Pizza Chaser in MakeCode ArcadeYouTube

Open on YouTube

The video is on YouTube, which needs a VPN on most networks in mainland China. It is extra: the lesson works without it.

More examples and practice

Open the planned version · 5 minutes

Start from your saved moving-player project and your Week 2 plan. Keep the earlier file so you can recover it.

Open the project and identify today’s first step.

Set start values and Food · 8 minutes

Inside on start, set score to 0 and life to 3. Create food of kind Food at x 140, y 60. Outside on start, add Player overlaps Food. Inside that event, change score by 1.

Follow Block reference 2 on page 24; predict which event runs on contact.

Practice only: score is 4. The Player touches Food. The event changes score by 1, then checks score >= 5. What happens?

Reveal reasoning

Score becomes 5, so the condition is true and the game shows a win. Checking before adding the point would delay this intended ending.

Practice only: the player is at x 140 when it touches Food. Where does the reference rule put Food?

Reveal reasoning

The test sprite x < 80 is false, so Food moves to x 20, y 60. It moves away from the player. Use the event’s otherSprite for the touched Food.

Make one touch mean one point · 17 minutes

In the overlap event, use its sprite and otherSprite labels. After the score/win check, if sprite x < 80, put otherSprite at x 140, y 60; otherwise put it at x 20, y 60. Moving Food away prevents one long touch from scoring repeatedly.

Build in small parts. Test one pickup and record the actual outcome on page 7.

Practice

  1. Predict one pickup together, then run and compare expected and observed behavior.
  2. Complete the three check rows and block explanation on page 7 in your own project.

Add and test the ending · 10 minutes

After changing score, use if score >= 5 then game over WIN. Use the chosen target if your approved game differs. Restart should restore initial score and lives.

Test the win target and restart; write what really happened, not only what should happen.

Explain and save · 10 minutes

Point to the event, changed value and condition. Save a new project PNG with a new version name. Keep the earlier working file.

Explain one block group and save the new version.

Check the plan · 5 minutes

A finished step means its check has been tried. A bug is a useful next action, not evidence to hide.

Record what you finished and what you will do next.

Show the event that adds a point and the condition that wins.

Classwork evidence

Pages 7 and 8 are for class. The only assigned homework is the Week 2 planning on pages 5 and 6. Open Grade 7 homework →

Record what you actually tested in class. If you did not run a check, write NOT TESTED.

  1. Page 7: record what really happened in the pickup, win and restart checks.
  2. Page 8: record what really happened in the hit, lose and new-game checks.
  3. Page 8: label one block group. Explain one real change you made, or why you made no change.
  4. Keep both project backups.

You are finished when: All six checks have real observations and both backups are saved.

Why this matters: A first playable game gives real players something to test in Week 4.

Revised weekly handout pages: 7, 8.

Classwork guide (Word)

Week 3 feedback rubric

Task-specific feedback guide, not official IB descriptors or an automatic criterion grade.

Working core
Pickup, score, win, hit, life, loss and restart checks show expected and actual behavior.
Coding explanation
A labelled block group identifies its event and state change; the student can explain their own work.
Plan and versions
The student checks the plan, records real changes or a supported no-change note, and keeps editable backups.
BandObservable evidence
0The work does not yet show the building evidence described below.
1–2A few blocks or screenshots are present, but the core is mostly incomplete. Checks and explanations give little information about what happened.
3–4Some core behavior works. Some pickup, ending or restart checks are recorded. The student explains part of a block group and identifies a next step, but evidence or backups have gaps.
5–6The main start/play/end paths work, with actual check results. The student explains an event and state change, uses the plan, records real changes and saves usable versions.
7–8The core works as intended through pickup, hit, both endings and restart. Specific checks and debugging explanations show independent understanding. Plan decisions are explained and versioned editable backups are verified by importing.