Developer Tools

Phaser

4.35

is a popular open-source framework for building 2D browser games using JavaScript and HTML5 Canvas or WebGL.

Visit Website

Phaser is the most popular framework for building 2D games that run in web browsers. Created by Richard Davey (known as Photonstorm) in 2013, it’s an open-source JavaScript framework that makes it straightforward to build games using HTML5 Canvas and WebGL without needing plugins like Flash.

The framework handles the essential game development building blocks: sprites, physics, animations, tilemaps, sound, input handling, and camera management. It supports both Arcade Physics (for simple, fast 2D physics) and Matter.js (for more complex physics simulations). Games built with Phaser run in any modern browser on desktop and mobile.

Phaser 3, the current major version, was a complete rewrite from the ground up. It introduced a modular architecture, a scene-based game structure, and improved performance. The framework uses a custom WebGL renderer that’s been optimized for 2D game performance, with Canvas as a fallback.

The Phaser community is active and welcoming, with extensive documentation, hundreds of examples, and numerous tutorials available. The framework is free under the MIT license, though the Phaser Editor 2D (a visual game development environment) is a paid product.

Thousands of HTML5 games have been built with Phaser, from small browser games to commercial titles published on platforms like Facebook Instant Games, CrazyGames, and Poki. The framework’s ease of use and JavaScript foundation make it a popular choice for web developers who want to get into game development. It’s also widely used in educational settings for teaching game programming concepts.