Recipes
Step-by-step builds of things people ask for: a quiz, a race, a boss, a save point.
- A quizQuestion objects, right and wrong rules, a score at the end.
- A two-player raceTwo racing cars, two sets of keys, first to the flag.
- A countdown timerSixty seconds, then game over.
- A boss with a health barHits take health away. Empty bar, boss gone.
- A shooterFire lasers, create enemies, explode them.
- A scrolling platformerA long level, a hero the screen follows, coins and a flag.
- A maze with keys and doorsA counter, a door that blocks until you have a key.
- A start screen with buttonsA first level with a Play button and a How to play text.
- A high score tableAsk for a name when the game ends well.
- A save pointTouch the flag to save. Carry on from the Welcome level.
- A pause screenPress P, show Paused, press P again.
- Jump-through platforms and laddersTwo solid settings that make platform games feel right.
- Waves of enemies with a spawnerA spawner, a timer, and more every wave.
- Random power-upsRandom(10) and Pick one at random.
- Lives as heartsShow lives as a row of hearts, or your own picture.
- An animated doorAn โopenโ animation and a solid that stops being solid.
- Screen shake and flashTwo actions that make hits feel big.
- A moving platform on a pathDraw a path, loop it, ride it.
- Enemies that chase when closeChases with a range, or Is near plus Move toward.
- Ask the playerโs nameA text box, Enter, and โHello, Sam!โ
- A hidden level with a passwordA text box and a Go to level rule.
- 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.