What does this code check?
if (input.isPressed('Space')) jump();
- Whether the player pressed jump
- Whether the game is saved
- Whether the enemy is near
- Whether the menu is open
This checks for a Space key press before calling the jump action.
Play Game Dev ▸