Phaser

Phaser examples

phaserjs/examples is the official pile of isolated Phaser scenes. Each example shows one thing: a body, a key, a tilemap, a camera. Use it when you know JavaScript and you want Phaser’s real API, not a full game.

Phaser examples
PhaserarcadeJavaScriptMITTemplate
Ad
Engine
Phaser
Language
JavaScript
Genre
arcade
License
MIT

Who it is for

  • JavaScript developers making a first browser game
  • People comparing Phaser to Godot for 2D web
  • Beginners who prefer small files over a course RPG

What you can learn

  • Arcade or Matter physics in one file
  • Cursors, pointers, and cameras
  • Tilemap loading the Phaser way

Clone and run

  1. Clone phaserjs/examples and follow the repo’s npm start (or open the hosted examples if the README points there).
  2. Pick one scene in the list. Change a number, refresh.
  3. Copy the pattern into a Vite template when you are ready to ship.

These files are MIT. They are not a product. Pair this repo with the official Vite + TypeScript template when you want a build step.

Public repositories. The short descriptions are written for this site.

Editorial notes reviewed 2026-10-05.

Related source

Quiz