Learn how to create a button in Phaser using TypeScript and the power of RxJS.
Tommy Leung from Ourcade writes: "Phaser 3 is a fun and easy-to-use game framework but it does not come with buttons. This is no problem because making a button in Phaser is simple. In this article we will show you how to make a button in Phaser using TypeScript and the power RxJS.
Buttons are commonly used in game menus and UI but they are not built into Phaser 3.
However, every GameObject in Phaser can be made interactive and respond to events like up, out, and over.
This means we can make a button pretty easily!
In this article, we will look at creating a basic button in Phaser that uses RxJS to dispatch click events."
The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
- By Emanuele Feronato
- 155 Pages
- 28 Source Code Examples
- Build a complete game from start to finish
- Cross Platform
- Scaling for devices