Izzimach / react-pixi

Create/control a Pixi.js canvas using React
Other
742 stars 69 forks source link

Game loop under a React Component #102

Closed Tilican closed 6 years ago

Tilican commented 6 years ago

Hi,

I use your lib for a school protoype, but i have a little problem cause i want the delta time since 2 render in the canvas, how i can do that ?

I use es6 / react 15.6.1 cause react 16 doesn't work with this lib

thx 👍

Izzimach commented 6 years ago

You can ovverirde the render method in the stage, could you use this to keep track of the time using performance.now() or something similar?

michalochman commented 6 years ago

@Tilican @Izzimach FYI I have just released michalochman/react-pixi-fiber that works with React 16.

Izzimach commented 6 years ago

Nice, I'll add something to the README