Makecode Arcade
Beginner
50 mins
Teacher/Student led
+120 XP

Read, Document and Debug Game Code

Students continue their MakeCode Arcade project by building a Hot Air Balloon dodging game, predicting behaviour before running, then reading, documenting and debugging the code.

Teacher Class Feed

Load previous activity

    1 - Start: What We're Building ~5 mins

    Last time you saved a MakeCode Arcade project — let's pick it back up. Quick recap: what does it mean to run a program, and why might it not work first time?

    Today you'll build Hot Air Balloon: a game where you fly a balloon and dodge clouds. We'll predict first, then build it step by step, run it, and fix anything that breaks. Open the project you saved earlier and get ready.

    2 - Predict Before You Run ~10 mins

    Before anyone clicks run, look at what we're about to build and commit to a prediction. What will the program do when it runs? What will you see on screen first?

    Say your prediction out loud to your partner before you build — we'll come back to it later to see who was right.

    3 - Create a New Project ~4 mins

    Start by creating a new project. To do this, visit MakeCode Arcade and click on 'New Project'. Name your project 'Hot Air Balloon'.

    4 - Set up the Game Environment ~4 mins

    Let's start by setting up the game environment. We will first set the background color of the game screen. Add the following code:

    scene.setBackgroundColor(9)

    This will set the background color to a sky blue, perfect for our hot air balloon game.

    5 - Create the Player ~4 mins

    Now, let's create our hot air balloon, which will be the player in the game. We will use the 'spritedata.create' function to do this. Add the following code:

    let player = sprites.create(img`...`, SpriteKind.Player)

    You can choose your own design for the hot air balloon using the image editor.

    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