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
FlxStateorganizes a scene; - how
FlxSpritecombines art, motion, and collision bounds; - how acceleration and velocity create a jump;
- how
FlxBackdropmakes 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