Skip to content

Build a game, understand the engine

These tutorials grow one playable game at a time. Each chapter introduces a small set of Flixel-Pixi concepts, explains why they belong together, and leaves you with code you can change.

Beginner

Build a Dino Runner

Build a clean-room endless runner inspired by the familiar offline dinosaur game. You will learn:

  • how FlxState organizes a scene;
  • how FlxSprite combines art, motion, and collision bounds;
  • how acceleration and velocity create a jump;
  • how FlxBackdrop makes an endlessly scrolling floor;
  • how to read keyboard and pointer input;
  • how to recycle obstacles and increase difficulty;
  • how to detect overlaps, score a run, and restart safely.

Time: about 45 minutes · Level: beginner · Assets: included spritesheet

Start the Dino Runner tutorial →

Released under the MIT License.