Anwinity Posted July 20, 2021 Share Posted July 20, 2021 Hey Guys, I'm just getting my feet wet with pixi (and html5 game stuff in general). I was wondering what people generally do for UIs in their games made with pixi? I found a related ui library called PUXI, but it seemed rather limited at a quick glance. Would it make more sense to just put actual html elements over the canvas? Or is that dumb... no idea. Appreciate any advice / points in the right direction. Also, using pixi 6 for my current experimentation. Thanks! Quote Link to comment Share on other sites More sharing options...
dittofittoe Posted July 20, 2021 Share Posted July 20, 2021 I was actually looking into this yesterday night too. PUXI was the first one I came across. The route im going through now is just rendering the UI as a sprite and having mouse clicke events and collision detection with the button positions. Quote Link to comment Share on other sites More sharing options...
SenPie Posted August 3, 2021 Share Posted August 3, 2021 @Anwinity I don't use any libraries to make a UI for my game, because in my opinion everything that pixi provides is enough to make a UI. What I do in my projects is basically I would have root Container object with 2 child Containers. One is for the core game, and the other if for UI. I would usually call HUD and manually make the components for my UI To get you started I would recommend you to watch this video which explains how you can handle user input in pixi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.