Making a 2D Game
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access