Voxel Game Maker

Docs Cookbook

Lives and game over

Game Settings ▸ Lives & score ▸ Lives (0 = unlimited).

#Without code

  1. Game Settings ▸ Lives & score ▸ Lives (0 = unlimited).
  2. Being defeated costs one; at 0 the lose screen offers Try again or Quit to title.
  3. Any Rule can also Lose the game.

#Quick code

Where it goes: Event: Player enters the world.

if lives_left() == 1 then
  banner("Last life!")
end