What does this condition check?
if (player.isGrounded) jump();
- Whether the player is on the ground
- Whether the player has a key
- Whether the game is over
- Whether the camera is zoomed
The isGrounded flag commonly represents whether the player can jump.
Play Game Dev ▸