STEP 20 OF 67 · YOU ARE THE GAMEPLAY PROGRAMMER

Add success, failure and restart

The objective tracks progress and unlocks the exit. Death leads to a checkpoint or restart. Now the game is a complete loop.

How to do it

  1. Track the objective and show it on screen.
  2. Unlock the exit when it is complete.
  3. On death, restart from a checkpoint.
How AI speeds this up

Ask Duke to write the objective and checkpoint logic.

Example from a sample game

Ashfall: grab the star-map, the tunnel gate opens; death returns Kaia to the courtyard campfire.

Before you move on

In Duke Forger, this step's gate checks:

Words to know

Checkpoint
A saved spot the player returns to after dying.
Game loop
The complete cycle a player repeats: start, play, win or lose, try again.
Do step 20 on your own game

Included in Creator, Academy and Studio. Duke drafts it with you and checks it before step 21 opens.

Start free