Phaser
Phaser Vite + TypeScript
This is Phaser’s official blank: Vite, TypeScript, one scene. It does not teach Snake. It gives you a folder that builds. Start here for a new web game, then steal mechanics from the examples repo.

Who it is for
- Anyone starting a Phaser 3 game in 2026
- TypeScript users who do not want webpack archaeology
- Jam teams on a browser target
What you can learn
- A current Phaser + Vite project layout
- Where the first Scene class lives
- How to add a second scene without fighting the bundler
Clone and run
- Install Node.js LTS.
- Clone phaserjs/template-vite-ts, run npm install, then npm run dev.
- Open the local URL. Edit src and let Vite reload.
Empty on purpose. If you need a genre, clone a Phaser example next, not this template. MIT for both the template and Phaser itself.
Public repositories. The short descriptions are written for this site.
Editorial notes reviewed 2026-10-05.
Related source
Phaser Snake
Classic snake on Phaser, commented for a first read.

Monster Wants Candy
Short HTML5 arcade game on an older Phaser release.
Simon clone
Memory sequence game with comments on the Phaser setup.

I Spy A Ghost
Browser multiplayer experiment using Phaser and WebRTC.

Phaser examples
Official isolated examples: physics, input, tilemaps, cameras.

Phaser 3 project template
Photon Storm’s minimal Phaser 3 project layout.