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 Dimension | Production Strength | Practical Limitation |
|---|---|---|
| Browser & Portal Reach | Instant load times on itch.io, Poki, CrazyGames, Telegram Mini Apps, and Discord | Single-threaded JS main loop requires Web Workers for heavy pathfinding grids |
| 2D Tooling Ecosystem | Native Aseprite, Tiled, TexturePacker, and Spine importers out of the box | Zero built-in 3D mesh rendering (requires manual Three.js canvas layering) |
| Desktop Shipping | Proven commercial viability on Steam (original Vampire Survivors stack) via Electron/Tauri | Console 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 SoftwareProcedural math, physics, or manual authoring software.
Steamworks guidance: Standard software workflow; Steam AI disclosure does not apply.