You will create your own game!
Pictured objects placed on the screen are called sprites. In the game:
You will use two functions:
onKey
- called each time a key is pressed on the keyboard.thrust
- applies thrust force on a spaceship and pushes it forward, to overcome the Gravity force.@thrust 100 # moves the sprite upwards at a velocity of # 100 pixels per second