Navigation

Part 7 - Conclusion

In this tutorial we've created a Scene which you can use to get a player to enter a highscore name with. You've also seen how a Scene can emit and listen for events from another Scene, and respond to them.

You are not limited to just 3 characters, either! I used that because it harks back to lots of classic arcade games that I remember fondly. Change the charLimit property in the Input Panel class to accept as many as you'd like. You can also change the font and the range of characters allowed. The bitmap font this project uses includes more than just A-Z, it has punctuation and numbers too, so feel free to expand this demo to add support for those.

The principals are the same, no matter how far you push it.

Source Code

This example is available here in the Phaser 3 Labs Git Repo, where you'll also find the assets required to run it.