<aside>
<img src="/icons/preview_yellow.svg" alt="/icons/preview_yellow.svg" width="40px" /> Module 2: Producing the Gameplay
Explainer Videos
Example of finished game code
</aside>
Description
<aside>
<img src="/icons/info-alternate_yellow.svg" alt="/icons/info-alternate_yellow.svg" width="40px" /> This lesson may take about 3 weeks and is split down into 3 lessons on the Student Site.
Goal: Start coding by programming the spaceship’s movements and controls. Make the satellites move and become obstacles in their game. Increase the difficulty of their game by adding and using variables for game level and timer. Use these variables to make their game harder.
Learning outcomes:
By the end of this lesson, learners will be able to:
- Use Scratch blocks to make their spaceship move up, down, left and right.
- Program keyboard controls for the player to control the spaceship.
- Test and adjust the movement to ensure it’s smooth and responsive.
- Program satellites to move across the screen at different speeds.
- Use the “if on edge, bounce” block to keep satellites within the screen.
- The satellites should be “cloned” every time the game level increases.
- Create random spawn points for satellites to increase difficulty.
- Add variables for game score and timer.
- The game level increases every X seconds (e.g. every 5 seconds).
- Clone the satellite sprite object every time the game level increases.
</aside>
Support Materials & Videos
Untitled