4 ms·
I'm excited to see how much this will make 2d games possible with react.
by proc0 7y ago
I'm excited to see how much this will make 2d games possible with react.
- c-smile 7y agoWhat do you expect from React in 2D games? React is just a procedural method of UI rendering. That's what pretty much all games do already. So is the question.
- mlsarecmg 7y agoCheck out this: https://codesandbox.io/embed/react-three-fiber-untitled-game-i2160 https://codesandbox.io/embed/react-three-fiber-untitled-game... Or some of the other demos here: https://github.com/react-spring/react-three-fiber https://github.com/react-spring/react-three-fiber React lends extremely well to games, especially with hooks. Now you have reactive components, but also algebraic effects.
- proc0 7y agoI was thinking 2d games but woah, very impressive.
- crubier 7y agoReact is not procedural. React is declarative. React is a way to turn imperative APIs into declarative APIs that are much easier to reason about. So yes, this is a big deal in my opinion.
- proc0 7y agoMany games are also a procedural method of UI rendering. Think about puzzle games, or even tetris. From a high level they're just complicated buttons. Of course it wouldn't be a good fit for anything that is highly interactive or 3d.
- gdxhyrd 7y agoI really, really hope nobody writes games in React. It is such a bad fit for games and it is very disrespectful of the environment and your users' battery.
- proc0 7y agoRemains to be seen, imho. Of course I'm talking about casual games with light 2d sprites/images.