Glossary Post - Phaser Game Engine

Phaser Game Engine

Phaser game engine is an open-source framework for developing HTML5 games. It is possible to create web and mobile games with this platform. The game engine has three main traits; it is fast, fun, and most importantly, free. What makes it fast is the ability to change automatically between WebGL and Canvas rendering. If the device used is capable of WebGL, the engine uses it. In other cases, when it is not able, it automatically switches to Canvas. Whether developers choose JavaScript or TypeScript, they will be able to create new games with Phaser. 

Inside the Phaser game engine utilizes the Pixi.js graphics library. It is a fast rendering option that targets Canvas and WebGL, as mentioned before. For game development, it has a huge benefit. If the device supports WebGL, players will enjoy smooth operations on the desktop. WebGL is still an emerging platform for mobile. Up-to-date versions of Phaser added shader and filter support functions in WebGL. It is also possible that in future versions, it will be possible to use new tools, such as Sprite Lamp. For further information, Sprite Lamp is a tool to join 2D graphics with dynamic lighting effects. 

For a long time, the audio was a huge problem for HTML game development. However, now Web Audio API came to rescue with its multi-channel and node-based audio support functions. Phaser engine supports Web Audio. There is another issue that needs more attention. Android devices still face troubles to support this audio solution. Therefore, Audio Sprites and legacy Audio can be helpful.

In terms of input, the game engine is competent. One can use both a mouse and touch or switch between them on Windows. In general, the phaser game engine works with various input options including keyboard, Pointer, mouse, touch, or with a mix of them. Besides, one can use the single-touch or multi-mode where he can define a maximum of 10 touchpoints.