2.8 Win/Loss setup

esign

Objectives

set up win loss system

Usability Features

Key Variables

Variable Name
Use

destroy

Destroys the object

Pseudocode


When the player collides with a "COIN":
    Destroy the coin.
    Transition to the "win" scene.

Define the "win" scene:
    Set jump to 1.
    Display the text "You WIN" at position (12).
    Wait for any key press to return to the start scene.

Define the "lose" scene:
   
    Display the text "You Lose" at position (12).
    Wait for any key press to return to the start scene.



  
  

Development

Outcome

Challenges

setting a speed value that makes platforming smooth and movement feel responsive

Testing

Evidence for testing

Tests

Test
Instructions
What I expect
What actually happens
Pass/Fail

1

interact with coin

Go win scene

As expected

Pass

2

Fall of map

Go lose scene

As expected

Pass

Evidence

Last updated