Introduction to Phaser.js
Explore how to use Phaser.js, an open-source JavaScript framework, to build web-based games. Understand the game loop, scene management, and essential methods to create dynamic graphics and continuous game updates. This lesson provides a foundation for developing interactive games using Phaser.
We'll cover the following...
What is Phaser.js?
Phaser is an open-source and free HTML game development framework that provides us with a set of tools and functions to build complex interactive games on the web. The framework uses WebGL and canvas-based rendering to render the games on the web and mobile browsers. It is a JavaScript-based framework, which makes it very easy to use with HTML. We will be using this framework to build the Spin-N-Win game, which will help you understand various concepts that are commonly used to build games with Phaser. You can download Phaser's JavaScript file from the official website of Phaser.
Now let's go over how the game loop is created in Phaser.