Jump to content

UI Elements on Phaser 3


T0YN3TT
 Share

Recommended Posts

You could either create your own buttons and text inputs using Phaser's GameObjects and input events, or you could layer some HTML elements over your game and use HTML/CSS/JS to create your log in form.

As far as accounts and authentication goes, you'll need to have a server running that holds all that information and logic.

This isn't a small task.

Link to comment
Share on other sites

Just now, snowbillr said:

You could either create your own buttons and text inputs using Phaser's GameObjects and input events, or you could layer some HTML elements over your game and use HTML/CSS/JS to create your log in form.

As far as accounts and authentication goes, you'll need to have a server running that holds all that information and logic.

This isn't a small task.

Thanks. I want to make with HTML elements, do you know some tutorial to do this?

Link to comment
Share on other sites

I would probably avoid trying to create the login form etc within Phaser.  As @snowbillr has hinted at, this would not be all that easy and you're going to need a workaround.

Maybe a better approach would be to create an HTML form within a div with a background so that it looks pretty and as if it's a part of the game, but is actually just pure html, css, JS etc and then create or show the Phaser game instance after the login has been processed.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...