In this chapter, we are going to build a simple 2D game that can run on the desktops of all major platforms by utilizing the Electron framework. We aren't going to build the game engine, though. To save time and to focus on the result, I am going to use Phaser. Phaser is a fast, free, and fun open source framework for Canvas and WebGL that powers browser and mobile games. You can check out Phaser at https://www.phaser.io/.
First, I am going to guide you through the process of creating a new game project scaffold. We will be packaging simple Phaser examples as a desktop application in order to render images and manipulate game sprites.
A sprite is a computer graphics term for a two-dimensional bitmap that is integrated into a larger scene, most often in a 2D video game. Essentially, a sprite is a game object that we can move, flip, manipulate, and so on.
We...