8
u/ostjh Mar 18 '22
In this link, you can see other games that I have developed in ReactJS: https://bio.link/jorgerub
5
u/azangru Mar 18 '22
How's the battery usage?
11
Mar 18 '22
<Canvas frameloop="demand">will only render when props change or when anything calls
invalidate(). react-spring does that automatically for instance but you can use anything and basically just invalidate in onChange and it'll be fine. this will completely stop doing anything when nothing's moving, battery will be fine. great game btw! :-)6
31
u/minicrit_ Mar 18 '22
this is really cool! i just spent 10 minutes playing around, can you share the source code? would really like to take a look at how you didnit
7
7
u/CaliBounded Mar 19 '22
If you don't mind me asking, which resources did you use to learn React Three Fiber? This may be because I found out about it not top long after it was created a few years ago, but I could NOT find many resources kn learning to use it...
4
u/andrerpena Mar 18 '22
This is really great. I did all levels now. The idea of using react to render 3D components make a lot of sense.
2
2
1
1
1
1
1
1
1
-14
0
Mar 19 '22
[deleted]
1
u/Ok-Department1190 Mar 26 '22
Just focus on what you enjoy and continue evolving. Not everyone enjoys game dev, especially using JavaScript/react at that. Also don’t sell yourself short, you may not know how OP did this but if you wanted to I’m sure you could figure it out given enough time and resources.
27
u/ostjh Mar 18 '22
This is the URL: https://this-side-up-react.vercel.app/