Phaser’s mascot in the lab, holding up a glowing flask
Phaser 4

Examples

Every part of Phaser 4 in a small example. Run it, read its code and copy it into your game or your coding agent.

  • 2,061 examples
  • 33 categories
  • 4.1.0 Phaser

Categories 33

Games 12 gamesAll games

Avoid the GermsA complete game template featuring pointer-based movement, Arcade Physics, and enemy object pooling. It demonstrates scene management, custom sprite classes, and using moveToObject for chasing AI logic.Bank PanicA complete arcade-style shooter demonstrating custom Container classes for complex game entities, managing randomized character states, and coordinating global game logic across multiple interactive objects.BreakoutA complete Breakout game example featuring Arcade Physics, grid-based brick alignment using a static group, and custom collision logic to control ball trajectory based on paddle impact.Card Memory GameA complete memory match game featuring 3D card flip animations created using Plane Game Objects. Demonstrates game state management, grid shuffling, pair-matching logic, and tween-based UI transitions.Coin ClickerA fast-paced mini-game demonstrating Arcade Physics for falling objects, timed events, high-score tracking via the Registry, and scene transitions.Emoji MatchA speed-matching game demonstrating how to align objects in a grid, manage texture atlas frames, and implement pair-matching logic using random array selection and staggered tweens.Flood Fill GameA complete color-matching puzzle game featuring a recursive flood-fill algorithm. It demonstrates staggered grid animations, particle effects for tile updates, and state-based game logic including move counters and win/loss conditions.MinesweeperA complete Minesweeper clone featuring dynamic bomb placement, recursive flood-fill for clearing empty areas, right-click flagging, and a retro UI with animated digit counters.Sliding Puzzle GameA complete sliding tile puzzle demonstrating dynamic texture slicing, interactive tile movement, a custom shuffle algorithm to ensure solvability, and WebGL shader effects for transitions.