evilfer / react-phaser

Other
101 stars 16 forks source link

Wow! #8

Open mattcolman opened 7 years ago

mattcolman commented 7 years ago

Just stumbled across this. I haven't used it yet, but looking at the code it's super impressive! Actually I'd be hesitant about using it for a commercial project as I feel that as Phaser moves forward into Phaser 3 this code will quickly fall out of date...but anyways, I love writing code in React, love making games in Phaser and hate making websites, so this does look perfect! Nice one 👍

evilfer commented 7 years ago

Hi mattcolman

Thanks for the comments! This library was initially more of an experiment and unfortunately I don't really have the time for it anymore.

Like you I love writing code in React, and for me It was very interesting to remove the ReactDOM from the React default package and adding Phaser objects as "native" react components. However, you can see at https://github.com/evilfer/react-phaser/issues/7 a discussion on whether this is the right approach: kevzettler suggests that it's important to keep the ability of injecting normal DOM components using react alongside Phaser components. The design of this library does not allow that.

For these two reasons, it's probably not suitable for a serious project, though perhaps this fork (https://github.com/llevkin/react-phaser) is in a much better state.