3 ms·
Frameworks aren't very relevant for games. I'd go with Typescript (because it will tell you about some errors earlier and provide code completion support if pro
by jonex 7y ago
Frameworks aren't very relevant for games. I'd go with Typescript (because it will tell you about some errors earlier and provide code completion support if properly set up) and WebGL. Then do everything in the canvas and essentially ignore the fact that you have a browser with a DOM etc.
An option is to target WASM and write the game in Rust or C++, using Emscripten WebGL bindings. This is harder but allows you to write high performance games that would run too slow in Javascript.