Today we will learn how to create a game. The goal of the game is to move the monkey to get the bananas. Here we will use the onKey
function which is called whenever you press a key on your keyboard. The image of the monkey character on the screen is called a sprite. The function step
moves the sprite. Write inside the onKey
function to move the monkey. Now let's start!
@step 1
This will move the sprite.