|
|
|
|
|
by jonorsi
973 days ago
|
|
https://github.com/orsi/react-gamin A very rough prototype of a game library with modern functional React. After seeing only a few game libraries in React, and all being relatively old and class-based, I wanted to learn how to make a React-based version of some simple games. So far I got pong and some walking/animating sprites on a map, but hopefully will find more time in the future to flesh it out. One big issue I found out was it’s incredibly difficult, if not impossible, to dynamically add/remove react components in and out of the dom. React very much encourages not touching or modifying “children”, with most apis that do that being obsolete and deprecated. |
|