Week 2 · Lesson 1 · 55 minutes
Plan events, state and endings
I can explain when each game rule runs and what it changes.
Archived Week 1 extension · 9 November 2026. Keep existing answers and editable project backups for reference. This is not a new deadline or a task to repeat.
Week 2 planning assumes Week 1 work is complete; this is not a claim that every student has submitted.
Task steps and checks
Goal and controls
- Tell a partner what the player must do to win. Then say which buttons the player uses. Goal means what to achieve; controls mean how to act.
Event and state
- An event starts some code. State is a value the game remembers now. Example: Player touches Food → score goes from 0 to 1. A second separate touch → score goes from 1 to 2. A forever loop is not a pickup event.
- Start
- Move
- Collect / Hit danger
- Win / Lose
Five short rules
- On page 5, write one line each for start, move, collect, danger and endings. Use “When ___, the game ___.” Include reachable win and loss conditions.
Trace two paths
- Read your rules in order: start → actions → win; start → actions → lose. Ask a partner where a step is missing. Include what happens to score or lives when it matters.
A choice for your player
- Pick one choice you made, such as speed, target or instructions. Say why it helps your intended player. New features are not needed.
Ready check
Check your result: Point to one event, the score or life it changes, and an ending condition. Keep answers already finished.
Revised weekly handout pages: 5.
Materials
Individual student workbook · Computer with MakeCode Arcade Blocks and simulator · Individual saved project PNG and backup folder
Resources
Vocabulary
- event
- Something that makes code run.
- state
- A value now, such as score or lives.
Original classroom model
Step through a pickup event
Open the existing project. Check movement, screen bounds and the editable PNG backup; repair missing basics first. This trace is a model, not proof your game works.
Use the buttons to step through. With scripts off, every frame remains readable.
Before collection
- Player moving
- Food present
- Score = 0
- Win at 5
Predict the new score before advancing. A win condition is separate from the movement controls.
Read the diagram
- Player moving
- Food present
- Score = 0
- Win at 5
One overlap event
- Overlap
- Add 1 once
- Remove Food
- Score = 1
The event changes stored state once. Remaining at the same location cannot collect an object that has been removed.
Read the diagram
- Overlap
- Add 1 once
- Remove Food
- Score = 1
Second separate pickup
- New Food
- Overlap
- Score = 2
- 2 < 5: continue
Now trace your own collect rule. The model has not won yet. Compare this with repeatedly adding points inside forever.
Read the diagram
- New Food
- Overlap
- Score = 2
- 2 < 5: continue
Why must touching the same Food not award points forever?
Discuss before revealing
Handle collection once: change score and remove that Food or otherwise mark it collected. A forever score change is not tied to a pickup. Test a second, separate pickup.
More examples and practice
Retrieve the goal · 5 minutes
A game goal tells the player what to achieve. Controls tell the player how to act. Keep these separate from coding instructions.
Say your goal and controls to a partner.
See an event change state · 10 minutes
Score is a stored value. A Player–Food overlap is an event. When it happens, the score changes. Starting the game is another event: it sets the first values. A forever loop would keep changing score even without a pickup.
Predict the score after two separate pickups from zero; use the worked example.
Practice only: score starts at 0. One Food touch adds 1. A win needs score >= 5. After two separate pickups, what is the score? Has the game won?
Reveal reasoning
The score is 2: 0 + 1 + 1. It has not won because 2 is below 5. The overlap is the event; score is the state.
Practice only: a rule says “forever change score by 1”. Does it mean one point per pickup?
Reveal reasoning
No. It changes score repeatedly without a pickup. Put the score change in the Player–Food overlap event to connect it to collection.
Map the rules · 15 minutes
Use five rows: start, move, collect, hit danger, win or lose. Write the action and any value changed. A clear rule says both when it runs and what happens.
Complete the page 5 table for your own game. Include possible win and lose conditions.
Practice
- Together label “Player touches Food” as event and “score = 2” as state.
- Complete all five rule rows and one player-facing choice on page 5.
Read the system aloud · 10 minutes
Use “When ..., the game ...”. The reader should be able to follow one whole path from start to win and another from start to loss.
Explain one path; ask the reader to identify any missing rule.
Design for your player · 10 minutes
A deliberate choice can be speed, goal, image or instructions. Explain the need it answers; extra features are not required.
Write one personal choice and how the player will know the controls and goal.
Check both endings · 5 minutes
An ending needs a condition that the game can actually reach. Score and lives should start at sensible values.
Point to your win and lose rules and explain how each can happen.
Name one event, the state it changes and one ending condition.
Plan the game system
Do only the parts you did not finish in class. Write what really happened; if you did not test something, write NOT TESTED. This is one task for the week, and nothing else is due.
- Page 5, game rules: write one short line each for start, movement, collection, danger and endings. Say what changes, and how to win and lose.
- Page 5: explain one choice you made for your player.
- Page 6, build plan: write three steps in order. Include testing and saving an editable project PNG.
- Page 6: describe one check and the result you expect. You are planning the check, not saying it has passed.
- Add one note: AI used for ___; I changed or checked ___. Or write: No AI used.
You are finished when: You have five rule lines, one player choice, three build steps, one planned check and your AI note.
Why this matters: A clear plan makes next week’s build faster. The check you plan now becomes your first test.
- Optional this week: time estimates, a new screen sketch and a written reader review. You do not need to finish coding the game.
- AI help is optional. It may explain a term or a block, suggest ideas, help you order your own steps, improve wording or explain a small code example. Check what you use against your own game.
- The decisions must be yours. Be ready to explain one event, and the score or lives it changes, without reading an AI answer. Do not hand in a plan or game written by AI, and do not invent tests or feedback.
- Use only a tool your school and family already allow. No account or payment is needed. Do not share personal information.
Revised weekly handout pages: 5, 6.
Week 2 feedback rubric
Task-specific feedback guide, not official IB descriptors or an automatic criterion grade.
- Game rules
- Short rules cover start, movement, collection, danger, winning and losing. Changes to score or lives are clear.
- Build plan
- Three ordered steps include testing and an editable backup. One check has an expected result.
- My understanding
- I explain one player choice and one event/state change. I acknowledge any AI help and check what I use. Optional extras are not needed for the highest band.
| Band | Observable evidence |
|---|---|
| 0 | The work does not yet show the planning evidence described below. |
| 1–2 | A few rules or steps are named, but important actions, endings or checks are unclear. |
| 3–4 | Some rules and ordered steps are usable. The ending conditions, expected result or personal explanation need clarification. |
| 5–6 | The main rules and both endings are clear. Three ordered steps include testing and backup. One expected result and a personal choice are explained. |
| 7–8 | The short plan is clear and workable. The student explains an event/state change and why a choice suits the player, and can justify or correct any help used. No extra sketch, timing table or reader report is required. |