Recipes

Step-by-step builds of things people ask for: a quiz, a race, a boss, a save point.

  1. A quizQuestion objects, right and wrong rules, a score at the end.
  2. A two-player raceTwo racing cars, two sets of keys, first to the flag.
  3. A countdown timerSixty seconds, then game over.
  4. A boss with a health barHits take health away. Empty bar, boss gone.
  5. A shooterFire lasers, create enemies, explode them.
  6. A scrolling platformerA long level, a hero the screen follows, coins and a flag.
  7. A maze with keys and doorsA counter, a door that blocks until you have a key.
  8. A start screen with buttonsA first level with a Play button and a How to play text.
  9. A high score tableAsk for a name when the game ends well.
  10. A save pointTouch the flag to save. Carry on from the Welcome level.
  11. A pause screenPress P, show Paused, press P again.
  12. Jump-through platforms and laddersTwo solid settings that make platform games feel right.
  13. Waves of enemies with a spawnerA spawner, a timer, and more every wave.
  14. Random power-upsRandom(10) and Pick one at random.
  15. Lives as heartsShow lives as a row of hearts, or your own picture.
  16. An animated doorAn โ€œopenโ€ animation and a solid that stops being solid.
  17. Screen shake and flashTwo actions that make hits feel big.
  18. A moving platform on a pathDraw a path, loop it, ride it.
  19. Enemies that chase when closeChases with a range, or Is near plus Move toward.
  20. Ask the playerโ€™s nameA text box, Enter, and โ€œHello, Sam!โ€
  21. A hidden level with a passwordA text box and a Go to level rule.
  22. An explosion that cleans itself upCreate it, play it once, destroy it when the animation finishes.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.