Learn how to create a button in Phaser using TypeScript and the power of RxJS.

Posted on 19th May 2021. Follow @phaser_ and get the Phaser World newsletter.


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."

Read More

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

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
Buy Now