2.9 Menu setup

Design

Objectives

set up power ups as well as a win loss system

Usability Features

Key Variables

Variable Name
Use

Is paused

Boolean value fot weather the menu is displayed

Pseudocode

  Define a boolean variable isPaused and set it to false.

Create a new scene called "pause":
  Display "Paused" text with size 48 at the center of the screen.
  When the "z" key is pressed:
    Set isPaused to false.
    Transition to the "game" scene.

Create a scene called "game":
  When the "z" key is pressed:
    Set isPaused to true.
    Transition to the "pause" scene.

Development

Outcome

Testing

Tests

Test
Instructions
What I expect
What actually happens
Pass/Fail

1

Press Z

the game to pause and the menu is displayed

Game pauses withouth menu

Fail

2

Press Z while game is paused

The game to unpause

The game unpauses

Pass

Evidence

Last updated