How to add HTML button DOM elements into your Phaser Games and control them.

Article by Richard Davey. Posted on 12th Jul 2019.   @photonstorm

image

PhaserGames.com continues the UI series: "Why use HTML buttons in Phaser 3? Normally I use images for buttons in Phaser, but if I’m using other form elements, like input text, sometimes it makes sense to use HTML buttons. It also allows me to use CSS styles on the buttons. This can be important because many times I’m handed designs by UI designers who don’t understand the difference between canvas and non-canvas design."

Read More