Jump to content

UIs with PIXI


Anwinity
 Share

Recommended Posts

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!

Link to comment
Share on other sites

  • 2 weeks later...

@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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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