Introduction to Phaser.js

Understand the basics of Phaser and build the skeleton for the Spin-N-Win game.

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.

Build a game loop using

...