Phaser (game framework)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Phaser (game framework) logo.png
Developer(s)Photon Storm
Stable release
3.23.0 / 28 April 2020; 4 months ago (2020-04-28)
Written inJavaScript, TypeScript
TypeGame engine
LicenseMIT License

Phaser is a free software 2D game framework for making HTML5 games for desktop and mobile.[1] It is developed by Photon Storm.[2]

Phaser uses both a Canvas and WebGL renderer internally and can automatically swap between them based on browser support. This allows for fast rendering across desktop and mobile. It uses the Pixi.js library for rendering.

Games can be compiled to iOS, Android and native desktop apps via 3rd party tools like Apache Cordova and phonegap.[3]

Whilst you can wrap your game into a native app using tools such as Cordova and Phonegap the game itself is never compiled. The 'game' is simply run as JavaScript in a bundled browser. This means performance is nothing like a native compiled app.


The only requirement to use Phaser is a web browser that supports the <canvas> HTML tag. For desktop this includes Chrome, Firefox, Safari, IE9+ and Opera. Development can be done in either JavaScript or TypeScript.[4]

Some of the elements available are:

  • Images, spritesheets and tweens - Static and dynamic images, and a mechanism to animate them.
  • Input control
  • Game Physics - Phaser includes three main physics engines.


Richard Davey announced the first release of Phaser on a blog post on April 2013.[5] Version 1.0 was released on September, incorporating the Pixi.js library for rendering.[6]

The last official version of Phaser 2 was 2.6.2, but to allow improvements to the stable version while working on Phaser 3, a new repository was created: Phaser CE (Community Edition).[7] Phaser CE is thus the currently recommended stable platform for development with Phaser.

Phaser 3.0.0 was released on February 13, 2018 and development is ongoing on Github.[8] Most elements and features of the framework have been rebuilt from scratch using a fully modular structure and data-orientated approach. Phaser 3 includes a brand-new custom WebGL renderer designed for modern 2D games. Since then, much of the documentation and examples for users has been completed, and the majority of features have been implemented.

Currently in development is Phaser 4, announced August 19th, 2019, which is an attempt to rewrite Phaser 3 in TypeScript. It is not an API rewrite and will instead be focused on porting the scripts that are currently in Phaser 3 to TypeScript.[9]

Architecture and features[edit]

Games made with phaser are developed either in JavaScript or TypeScript.

The game is rendered either on WebGL or Canvas element

Phaser has support for Spritesheet, sprites loading; which can be used for animating, moving, etc. It also has support for loading tiled maps.


Phaser can be either rendered in WebGL or a canvas, with an option to use WebGL if the browser supports it or if a device doesn't support it is'll fall back to Canvas.


Phaser ships with Arcade Physics system, Ninja Physics and P2.JS - a full body physics system.

Animation and Audio[edit]

Animation can be done in phaser by loading a spritesheet, texture atlas and creating an animation sequence. Web audio and HTML5 audio can be used to play sound in phaser.


Phaser games can be made either in JavaScript or Typescript

See also[edit]


  1. ^
  2. ^
  3. ^
  4. ^
  5. ^
  6. ^
  7. ^
  8. ^ "Phaser - The fast, fun and free HTML5 Game Framework". Retrieved 2018-05-15.
  9. ^ "Phaser 3 Dev Log #148: Phaser 4 Announcement and a catch-up on Phaser 3.18 and 3.19 releases. - Phaser3 - Phaser". Retrieved 2020-04-26.

External links[edit]