Hacker News new | ask | show | jobs
by flohofwoe 919 days ago
Same reason why Electron exists, but in a much smaller bundle (since most of the actual browser engine wouldn't be included).

This would also be an opportunity to build better cross-platform APIs than what's available in browsers (e.g. WebAudio, fullscreen, pointer lock, text input (input in general), networking, ... are all a royal PITA on the web - basically any web API that isn't WebGL or WebGPU is mostly broken or half-assed).

1 comments

That is what middleware is for.

So lets call it a game engine using JavaScript, instead of the usual ones.

If you want to call something simple like winit, GLFW or SDL a 'middleware' then yes. It definitely would not be a game engine in the popular sense like UE or Unity, those are way to bloated for most use cases such a minimal cross-platform wrapper would be good for. It would be something you could build a game engine on top though.
It's more a cross platform UI tooklkit built around web standards.