Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling
Overview
Phaser provides a scene-based API for building 2D games that render through Canvas or WebGL in modern browsers. It includes asset loading, input, cameras, tilemaps, particles, tweens, and built-in Arcade and Matter.js physics, and can be used with many front-end frameworks or plain JavaScript.
The current major release replaces the older renderer with a node-based WebGL pipeline aimed at better state management, context recovery, and batching performance. New capabilities include a unified filter system for visual effects, GPU-oriented sprite and tilemap layers for large counts, expanded lighting, and additional procedural game objects such as gradients and noise generators.
Distribution is via npm, CDN, or an interactive project generator that scaffolds templates for common bundlers and frameworks. Documentation, hundreds of examples, an online sandbox editor, and TypeScript definitions support day-to-day development. Community plugins extend UI, networking, and gameplay utilities.
Phaser is maintained commercially alongside community contributions and is positioned for web-first delivery, including embeddable formats for social and streaming platforms when packaged externally. Migration guidance exists for projects moving from the prior major version’s rendering and effects APIs.
Key features
- Canvas and WebGL rendering
- Scene-based game structure
- Arcade and Matter.js physics
- Animation, tilemap, and particle systems
- Works with React, Vue, and other frameworks
- Unified GPU filter and mask effects
- High-count sprite and tilemap layers
- TypeScript definitions and examples
Use cases
- Browser-based 2D arcade games
- Mobile-friendly HTML5 games
- Discord Activities and playable embeds
- Educational game prototypes
- AI-assisted game code generation