4 ms·
What 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.
by c-smile 7y ago
What 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.