๐Ÿš€ Escape Mission

Build a fun maze game in Sprite Lab!

1. Create the Title Screen

๐ŸŽฏ Goal

Welcome the player before the game begins.

๐Ÿ“‹ Follow These Steps

  1. Set the background to the forest scene.
  2. Show a title screen with the title 'Escape Mission'.
  3. Add the subtitle 'Press Space to continue'.
  4. Set the variable startGame to false.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
Run your project. You should only see the title screen.

Example blocks

2. Build createMap()

๐ŸŽฏ Goal

Create the maze and place important objects.

๐Ÿ“‹ Follow These Steps

  1. Create a function called createMap().
  2. Use the grid blocks to build the walls and floor.
  3. Place three keys around the maze.
  4. Resize the keys to 35.
  5. Make every key wobble.
  6. Place the exit house.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
When the function runs, the maze, keys and house should appear.

Example blocks

3. Build createAliens()

๐ŸŽฏ Goal

Add moving enemies.

๐Ÿ“‹ Follow These Steps

  1. Create the pink alien and make it patrol.
  2. Create the green alien and make it move south in a loop.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
Both aliens should move automatically.

Example blocks

4. Build startGame()

๐ŸŽฏ Goal

Prepare everything needed to play.

๐Ÿ“‹ Follow These Steps

  1. Hide the title screen.
  2. Call createMap().
  3. Call createAliens().
  4. Create the player.
  5. Resize the player to 35.
  6. Enable arrow key movement.
  7. Show the game instructions for 3 seconds.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
The player should be able to move around the maze.

Example blocks

5. Start the Game

๐ŸŽฏ Goal

Start the game when Space is pressed.

๐Ÿ“‹ Follow These Steps

  1. Check whether startGame is false.
  2. If it is, set it to true.
  3. Call startGame().
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
Pressing Space should start the game only once.

Example blocks

6. Build gameOver()

๐ŸŽฏ Goal

Display the Game Over screen.

๐Ÿ“‹ Follow These Steps

  1. Play the game over sound.
  2. Remove all sprites.
  3. Change the background.
  4. Show the Game Over title screen.
  5. Set startGame back to false.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
Touching an alien will restart from here.

Example blocks

7. Add Collision Events

๐ŸŽฏ Goal

Handle keys and enemies.

๐Ÿ“‹ Follow These Steps

  1. If the player touches either alien, call gameOver().
  2. If the player touches a key, play a sound, remove the key and increase collectedKey by 1.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
Keys should disappear after being collected.

Example blocks

8. Create the Win Screen

๐ŸŽฏ Goal

Let the player escape.

๐Ÿ“‹ Follow These Steps

  1. When the player reaches the house, check whether collectedKey equals 3.
  2. If all keys are collected, show the winning screen.
  3. Otherwise tell the player they still need all three keys.
๐Ÿ’ก Tip: Compare your blocks carefully with the example image.
โœ… Check Your Work
You can only win after collecting every key.

Example blocks

๐ŸŽ‰ Mission Complete!

You built a complete game using functions, events, collisions and variables.

๐Ÿš€ Now Make It Your Own!

Great programmers don't stop after finishing a tutorialโ€”they improve it!

Your imagination is the only limit. Keep creating! ๐ŸŒŸ