Jump to content

Integrate Pixi with React


Sanyok2611
 Share

Recommended Posts

Hello. I've written an app with html+js+pixi. In index.html I have a canvas container and i append pixi app view to it. All scene settings and app logic are in main.js. In main I have functions like init(), onWindowResize() etc. Also I have some imports of own classes.

example of CameraControls and a part of main are included

I use  jquery in main for user interface. So, I am interested in how can I use all my scripts in react application. Should I use react-pixi or react-pixi-fiber? Or it is possible to use my scripts somehow?

main.js CameraControls.js

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