What does HackerNews think of javascript-game-engines?

Not only is this possible, there's actually a bunch!

Unity has a WebGL player, but I guess Unity is dead now.

Other WebGL projects are the Quake 1 and Quake 3 Arena games ported to the web: https://www.netquake.io/ https://openarena.live/

PlayCanvas is a commercial offering: https://playcanvas.com/explore

There's also a bunch of open-source Javascript game engines: https://github.com/collections/javascript-game-engines

Of those, BabylonJS seems pretty powerful for 3D: https://www.babylonjs.com/games/

Or PixiJS for 2D: https://pixijs.com/

Lastly, there's also my personal preference... game streaming via GeForce Now (https://www.nvidia.com/en-us/geforce-now/) or Luna (https://www.amazon.com/luna/landing-page) or Boosteroid (https://boosteroid.com/). They're like Stadia, but actually alive, and GFN in particular works really, really well. Way better than trying to render graphics locally on my Mac (the RTX 4080 is way more powerful than even the M2 Ultra, and cloud streaming means no heat or noise or battery consumption locally). I hope that, not clientside WebGL/JS, becomes the future of web gaming.

Here's the more popular dozen or so: https://github.com/collections/javascript-game-engines

If you want to know about the really small indie ones that are less for actual use and more for just "I want to make a game engine" I would check out the various gamedev Discord and Reddit channels. There's always people showing off their work.

honestly as long as the logic graphics aren’t particularly complex you’ll probably be best using TypeScript. Just make a small site in something like vite.

See https://github.com/collections/javascript-game-engines for a list of game engines. ive used pixi.js and it’s a very good graphics library although it doesn’t have other “game-engine” features like physics (you could use matter.js which is a standalone physics library). Others recommend phaser which is a real game engine although it looks kind of dated.

For accounts, multiplayer, iap, etc. you’ll need a server. This can also be done in TypeScript or choose any other server framework. There are JavaScript libraries like Koa for web-socket communication.