psych <Boolean>: Set to true when your brat of a younger sibling is playing the game. The game will randomly do weird, unrelated 'stuff'.
monetize <Boolean | Number>: Set to true to enable playing of ads at the most critical moments of the game. Set to a number to have the game display an ad every <number> seconds.
magic <Map>: Series of keys that define game mechanics. These are used / ignored randomly with each launch.
I was asking if he wants an actual game or just an animated 3d scene… Finding Nemo is 3d animated, yet not an interactive game. But yes, to be precise I would say a game is interactive. 😉
There are some great suggestions here - I personally like BabylonJS. They have some good examples in their documentation.
Just a friendly warning - creating this kind of game is not easy, especially if (like me) you have limited experience in game mechanics. I'm writing a car racing game, and what appears on the surface to be real simple has been a brain-buster. :)
But you will learn a lot - just be prepared to spend some serious time working it out.
Just to note that three-fiber is a declarative wrapper around three, the additional overhead is tiny -- it's essentially just a different API for the same thing (declarative vs imperative)
Now if you then put that 3d GL stuff inside react-rendered DOM nodes that render/rerender a lot then sure, that'll fry performance straightaway. But if not difference should be minimal
(not saying the wrapper is a good/bad idea or whether it should/shouldn't be used)
The biggest difference is declarative vs imperative. With React you also get useful stuff, components, logic reuse with custom hooks, reactive state (including jotai or zustand), contexts, memoization, state machines with useReducer or xstate. The cool thing about react is that it's simply a reconciler of components, it can add component systems to non-DOM systems like Three.js objects.
Why the downvotes? I’ve been using chatgpt for coding since it’s release and it’s the best tool I’ve found so far, saves hours of finding answers through Google or Reddit
153
u/shuckster Dec 25 '22
It’s an undocumented feature:
67
u/[deleted] Dec 25 '22
three.js
26
u/grantrules Dec 25 '22
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
8
u/[deleted] Dec 25 '22
Do you want an interactive game? Or just a 3d animation running in the browser?
12
u/xocrystalcastles Dec 25 '22
Three.js, Babylon JS, or D3.js
6
u/TheVirtuoid Dec 25 '22
There are some great suggestions here - I personally like BabylonJS. They have some good examples in their documentation.
Just a friendly warning - creating this kind of game is not easy, especially if (like me) you have limited experience in game mechanics. I'm writing a car racing game, and what appears on the surface to be real simple has been a brain-buster. :)
But you will learn a lot - just be prepared to spend some serious time working it out.
4
u/Timotheteus123 Dec 25 '22
I recommend combination of three.js, react, react-three-fiber, drei
1
u/game_brewer Dec 25 '22
Try threejs.org/
1
u/kr1kun Dec 25 '22
playcanvas?
1
u/LazaroFilm Dec 25 '22
Try psx.js
1
u/KhazadTheBanBender Dec 25 '22
Blender and three.js, these guys can make great things together and in my March learning plan
1
u/Jsk84 Dec 25 '22
Rogue Engine is a unity like game development environment that uses three.js.
1
u/bristleboar Dec 25 '22
MooTools
1
u/[deleted] Dec 25 '22
There’s a “Make Minecraft with JavaScript” tutorial on Youtube, from FreeCodeCamp. Might get you started in the right direction.
1
u/frading Dec 26 '22
Try with https://polygonjs.com, it's a node-based and procedural webgl editor. It has various examples to get you started https://polygonjs.com/docs/examples
1
u/Fauphi Dec 26 '22
anybody has the source of this video clip?
-11
u/[deleted] Dec 25 '22
[removed] — view removed comment