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

Score, Win and Share, Part 3

Students complete the Monkey Mayhem build in MakeCode Arcade, adding scoring, sound and a countdown timer to a sprite-collection game using the PRIMM approach and named debugging.

Teacher Class Feed

Load previous activity

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

    Quick recap: in the game you saved earlier, how did we get the monkey moving with the joystick or arrow keys? Today we'll keep building Monkey Mayhem at our devices — adding points for each donut, a sound when you collect one, and a 30-second countdown to make it a real challenge. Open the project you saved earlier and we'll predict before we build.

    2 - Predict Before You Run ~10 mins

    Before anyone runs anything, commit to a prediction. When we add the code that lets the monkey collect donuts and earn points, what do you think will happen on screen the moment the monkey touches a donut? Will the donut stay or vanish? Will the score change? Decide now — we'll check who was right later.

    3 - Introduction ~3 mins

    Welcome to our exciting coding adventure, Monkey Mayhem! In this lesson, you will create a fun game using MakeCode Arcade. You will control a monkey character who loves to eat donuts. Your task is to help the monkey collect as many donuts as possible within 30 seconds. Are you ready to start coding? Let's go!


    4 - Create a New Project ~3 mins

    Open the MakeCode Arcade website using the link below and create a new project. You can call the project whatever you want.

    https://arcade.makecode.com

    5 - Add Your Player ~3 mins

    Next, you will create your player sprite. This is the character that you will control in the game. Add the following code:

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

    Then click on the grey box and choose a sprite character from the gallery. In our example we will choose the monkey character.

    let mySprite = sprites.create(img`
        . . . . f f f f f . . . . . . . 
        . . . f e e e e e f . . . . . . 
        . . f d d d d e e e f . . . . . 
        . c d f d d f d e e f f . . . . 
        . c d f d d f d e e d d f . . . 
        c d e e d d d d e e b d c . . . 
        c d d d d c d d e e b d c . f f 
        c c c c c d d d e e f c . f e f 
        . f d d d d d e e f f . . f e f 
        . . f f f f f e e e e f . f e f 
        . . . . f e e e e e e e f f e f 
        . . . f e f f e f e e e e f f . 
        . . . f e f f e f e e e e f . . 
        . . . f d b f d b f f e f . . . 
        . . . f d d c d d b b d f . . . 
        . . . . f f f f f f f f f . . . 
        `, SpriteKind.Player)
    
    


    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