I'm new to JavaScript and wondering if it's really feasible to create video games, especially something like a basic desktop battle royale or a 3D game using JavaScript libraries. I'd love to hear if anyone has experience with this and whether you think it's a viable project given the current capabilities of JavaScript for game development.
6 Answers
In short, you can make something fun, but if it's about creating a polished game for others? That might be a stretch!
Absolutely, using JavaScript for indie games can work well! Tools like PlayCanvas, BabylonJS, and ThreeJS are great for small to medium projects. They have strong communities, so getting people to try your game is easier compared to more complex engines like Unity or Unreal. You might want to consider those options for your game!
That sounds a bit labor-intensive though, right?
Definitely doable! Check out classic Minecraft at classic.minecraft.net or look through the examples on three.js to see some amazing things that can be created.
Wow, I had no idea about that site! Was it all made with JavaScript?
You can dive into 3D development with libraries like React Three Fiber. For better performance, you'll likely want to build a custom solution to avoid extra load. Also, JavaScript now has multithreading options for the CPU and GPU, plus WebGPU is a cool new standard to look into.
Many games are out there on the web made with JavaScript!
Small games in JS are possible, but be cautious—it's quite memory-intensive. If you're eager to experiment, it may give you the drive to learn a language that's more optimized for gaming.

Can I ask why not?