Phaser icon

Phaser

Standard softwareFOSS · MIT

Fast MIT TypeScript and JavaScript 2D HTML5 game framework

Free (MIT) · Photon Storm / Phaser Studio · Standard software workflow; Steam AI disclosure does not apply.

AI
Standard
IP
Commercial-Safe IP
Engines
Web / JS
Platforms
Web · Windows · macOS · Linux · CLI
Version
3.87
Technical Summary

Phaser is an MIT-licensed open-source TypeScript and JavaScript 2D HTML5 game framework developed by Phaser Studio. Completely free for commercial publishing with zero royalties, it runs in any WebGL or Canvas browser and packages cleanly via Vite, Electron, Tauri, and Capacitor for Steam, mobile, and Discord Activities.

Technical Overview

Architecture and Production Workflow

Phaser 3.87 centers on a multi-texture WebGL sprite batching renderer (with automatic HTML5 Canvas fallback) engineered to push tens of thousands of textured quads at 60-120 FPS in modern desktop and mobile browsers. Scenes manage deterministic lifecycle hooks (init, preload, create, update) alongside built-in subsystems for input polling, tween timelines, camera shake/zoom bounds, particle emitters, and Web Audio spatial playback. Developers choose per project between two bundled physics engines: Arcade Physics for low-overhead AABB and circle velocity collisions in action platformers or bullet-heaven survivors, and Matter.js for full rigid-body polygon constraints and Ragdoll joints.

Asset pipelines connect directly to industry-standard 2D authoring tools without proprietary intermediate compilers. Phaser's loader natively parses TexturePacker multi-atlas JSON files, Aseprite sprite-sheet JSON tags, Tiled .tmj multi-layer tilemaps, Spine 4.x skeletal rigs, and custom GLSL fragment PostFX pipelines (bloom, barrel distortion, CRT scanlines, color matrices). Phaser Studio maintains official starter templates for Vite, TypeScript, React, Vue, Next.js, and the Discord Embedded App SDK.

Pricing, Licensing, and Commercial Rights

The Phaser framework runtime is 100% free and open source under the permissive MIT license with $0 seat costs and 0% revenue royalties across web portals, Steam desktop wrappers, iOS, and Android. Phaser Studio funds core framework maintenance through Phaser Editor v4, an optional commercial visual scene/prefab layout IDE (~$13/month or ~$115/year) that reads and writes standard Phaser TypeScript/JavaScript code; using Phaser in VS Code, Cursor, or WebStorm remains completely free forever.

Strengths and Tradeoffs in Studio Pipelines

Pipeline DimensionProduction StrengthPractical Limitation
Browser & Portal ReachInstant load times on itch.io, Poki, CrazyGames, Telegram Mini Apps, and DiscordSingle-threaded JS main loop requires Web Workers for heavy pathfinding grids
2D Tooling EcosystemNative Aseprite, Tiled, TexturePacker, and Spine importers out of the boxZero built-in 3D mesh rendering (requires manual Three.js canvas layering)
Desktop ShippingProven commercial viability on Steam (original Vampire Survivors stack) via Electron/TauriConsole porting (Switch, PS5, Xbox) requires rewriting or custom WebView middleware

Wrap commercial Steam builds of Phaser games in Tauri v2 or Steamworks.js + Electron and pack sprites into 2048x2048 multi-texture atlases to minimize WebGL draw calls.

AI Transparency & Steam Disclosure

Standard Software

Procedural math, physics, or manual authoring software.

Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.

Technical FAQ about Phaser

Can you ship a commercial Steam game built with Phaser and TypeScript?
Yes. Commercial breakouts like the original release of Vampire Survivors launched on Steam using Phaser wrapped in Electron, and modern teams frequently pair Phaser + Vite with Tauri v2 or Electron alongside `steamworks.js` for native Steam achievements, cloud saves, and controller input.
Should I use Arcade Physics or Matter.js in Phaser 3?
Use Arcade Physics for 90% of 2D platformers, top-down RPGs, and survivor horde games because its axis-aligned bounding boxes and circles evaluate thousands of overlaps per frame with minimal garbage collection. Reserve Matter.js for physics puzzlers needing rotated polygon collisions, hinges, and springs.
Do I need a Phaser Editor subscription to build commercial Phaser games?
No. The entire Phaser 3 engine, TypeScript definitions, Spine plugin, and Vite/Discord templates are MIT-licensed and free for commercial releases. Phaser Editor v4 is strictly an optional visual scene builder for teams that prefer drag-and-drop prefab composition over code-only layouts.

More tools like Phaser