$ ./guess_the_languageGame Dev
Game Dev · easy · #9

What does this code check?

if (input.isPressed('Space')) jump();
  1. Whether the player pressed jump
  2. Whether the game is saved
  3. Whether the enemy is near
  4. Whether the menu is open
This checks for a Space key press before calling the jump action.
Play Game Dev ▸