Best way to go about making ui for a sandbox game

So I’ve been making a survival game, like a 2d minecraft, here https://paperambi2.glitch.me/ and I’d like to know the best way to go about for ui, as i saw a post for kronkr.io that uses html ui, and i saw the phaser ui plugin, but its buggy when i tried, it, so whats a good method to go about making a ui in phaser, especially one like minecrafts

You can look at Rex’s UI plugins.

And the other approach is a DOM library like React.

1 Like

For Es6 imports, how do i add the plugin? Even my phaser plugin method is the ourcade es6 method, getting the js file and then using export default window.Phaser, so how would implement the phaser plugin like this?

Which plugin?

never mind im working with DOM