Phaser (game framework)
The topic of this article may not meet Wikipedia's general notability guideline. (January 2018) (Learn how and when to remove this template message)
3.16.2 / 11 February 2019
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.
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.
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). 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. 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. Much of the documentation and examples for users has yet to be completed, although the majority of features have already been implemented.
Architecture and features
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 a option to use WebGL if the browser supports it or if a device doesn't support it it'll fall back to Canvas.
Phaser ships with Arcade Physics system, Ninja Physics and P2.JS - a full body physics system.
Animation and Audio
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.
- photonstorm.com, Photon Storm -. "Phaser - The fast, fun and free HTML5 Game Framework". phaser.io. Retrieved 2018-05-15.
|This video game software-related article is a stub. You can help Wikipedia by expanding it.|