5 ms·
I've often thought React would be perfect for creating games with. Even attempted my own framework similar to this using the canvas but it fell down when it cam
by adriancooney 10y ago
I've often thought React would be perfect for creating games with. Even attempted my own framework similar to this using the canvas but it fell down when it came to rendering. I felt like React really didn't suit the update/render loop approach. It doesn't seem to talk about it on the project page so I wonder how this works. Using the DOM?
- talldan 10y agoI had a quick look into the code base, and it is indeed targeting the DOM, rather than canvas or webgl. It has a sprite component which is just an absolutely position img element wrapped in a div.