Makecode Arcade
Intermediate
60 mins
Teacher/Student led
+65 XP

Improve, Debug and Share the Game

Improve your saved game by adding either a loop or an event. Find and fix a bug or name a careful check, remove blocks that do nothing useful, then record the changes and demonstrate this version to a partner.

Teacher Class Feed

Load previous activity

    1 - Getting Started ~5 mins

    Illustration for Getting StartedOpen the game you saved earlier in this project. Does your character already move left and right? Is there a coin or a score yet?

    Name one thing a visitor would still wish the game could do. Today we will add that missing piece, fix any mistakes we find, tidy the code, and show this version to a partner.

    2 - Loops and Events ~6 mins

    Key point

    A loop keeps something useful happening again and again, for example checking every moment whether the sprite has touched a coin. Look at the forever block on the board: that shape is a loop.

    Key point

    An event waits for something to happen, such as a button or a bump, then runs its blocks, for example the sprite jumps when A is used. Look at the on A button block on the board: that shape is an event.

    Watch for both ideas when we model next. You will choose one of them later when you improve your own game.

    3 - Watch the Next Steps ~7 mins

    Watch the board. We will add one improvement to a sample game, run it, find a mistake on purpose, fix it, and remove one block that does nothing useful.

    Today's modelled feature is a jump on A. Before we run: if A does nothing, or if the sprite flies off and never comes back, what will you notice on screen?

    4 - Extend, Debug and Simplify ~25 mins

    In pairs, open your saved game from earlier in this project and run it once.

    Tip

    One solid improvement and a tidy-up is enough. Real makers do not finish everything in one go.

    Follow this checklist on the board:

    1. Choose your route (Route B is the default if your save is movement-only; choose Route A only if you already have a coin and score).
    2. Add that one change.
    3. Run the game.
    4. Fix one thing if needed, or name one careful check you ran.
    5. Tidy: remove one block that does nothing useful, then run again.
    6. Ready to demo: what you added, a bug or careful check, and the unused block you removed.

    5 - Record the Bug and the Change ~8 mins

    On your Investigation Journal page, record three things using these starters:

    • We added… so that a visitor can…
    • The bug was… We fixed it by… (or: The check we ran was…)
    • We removed… because…
    Pupil practice · Investigation Journal
    Module 4 · Technology: Inputs, Algorithms and Coding on Devices
    Lesson 26 · Improve, Debug and Share the Game
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2025. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more