image

Tommy Leung from Ourcade writes: "Phaser doesn't come with native UI controls so you'll need a third-party solution for things like text input. In this article, we show how you can use the RexUI TextEdit plugin to get text input from the player.

At some point, your game will want text input to collect information from your player like their name for a save file or a high score leaderboard.

Phaser doesn't have native UI controls although you can use any CSS UI framework via the DOMElement like we did here for buttons.

But maybe you just aren't into HTML. You're a game developer; not a web developer. 💁‍♀️

If you've done your share of searching in the Phaser community then you've probably come across RexUI by Rex Rainbow.

In this article, we will look at using Rex's Text Edit plugin to let players enter text."

Read More