How to use Bulma, JSX and the DOM Element to easily add CSS buttons to your games.
Tommy Leung from Ourcade writes: "There is a vast ecosystem of beautifully styled and feature-packed CSS frameworks can be leveraged for UI in a Phaser game. In this article, we look at using Bulma, JSX, and the DOMElement to easily add buttons to your game. Phaser is a great HTML5 game framework that can leverage much of the ecosystem around developing web applications.
One of the core pieces of web apps is the UI and there is no shortage of UI frameworks you can use.
In this article, we will look at using Bulma to power buttons in a Phaser game.
JSX will be used to let us write HTML in our code. Doing so better matches how CSS frameworks are used and makes the HTML easier to reason about."
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