See how you can use the RexUI TextEdit plugin to get text input from the player.

Posted on 14th Jun 2021. Follow @phaser_ and get the Phaser World newsletter.

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

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
$19