jjwallace Posted November 13, 2018 Share Posted November 13, 2018 Is it possible to just drop in a pixi application into a component without using pixi-react or anything like this? It is hard to find a solution to this. I am not really into declaritive style for building out this application... ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 13, 2018 Share Posted November 13, 2018 There are several solutions but I'm too lazy to search them for you This one I found on https://github.com/pixijs/pixi.js/wiki/Boilerplate : https://github.com/dakom/html5-boilerplate/tree/react Quote Link to comment Share on other sites More sharing options...
jjwallace Posted November 14, 2018 Author Share Posted November 14, 2018 Thanks @ivan.popelyshev , yeah i tried these, none are what im looking for. Just React and Pixi in ES6, no typescript shananagans. I am just gonna have to build my own. ok here we go. Declarative style coding is horrible, front end devs be messing with crap and polluting stuff Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 15, 2018 Share Posted November 15, 2018 I consulted one small company yesterday and they said that they tried multiple solutions for react+pixi and started making their own. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 15, 2018 Share Posted November 15, 2018 The only thing you have to be aware is that you have to dismantle PIXI.Application and make your own. Also, when you create renderer, it creates interactionManager that binds events to the canvas. https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop - everything is right there except "interactionManager" part, its still inside renderer and can't be created from outside. 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.