Jump to content

What is the best way to distribute Pixi.Container in different Divs (html elements)?


Noturnoo
 Share

Recommended Posts

 

Example, I have 6 divs inside my body, and wanted to add a container for each div:
eg.: <div id = "one"> Pixi.Container 1 </ div>, 
<div id = "two"> Pixi.Container 2</ div>,

..... 
<div id = "six"> Pixi.Container 6 </ div>

and so on, is there a way to do this without having to instantiate several Pixi App?

Link to comment
Share on other sites

Instantiate several renderers instead. Application is a mashup class that you have to rewrite if you have different set of components: https://github.com/pixijs/pixi.js/blob/dev/src/core/Application.js

This article is correct in everything except "interactionManager", its actually embedded into renderer: https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop

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...