4 ms·
It's possible to run traditionally desktop games that use OpenGL by compiling them to JavaScript. As an example, here's a port of an old C++ game to Go which I
by shurcooL 12y ago
It's possible to run traditionally desktop games that use OpenGL by compiling them to JavaScript.
As an example, here's a port of an old C++ game to Go which I am able to have running in the browser [1]. It's a multiplayer game too. (The port is not finished.)
> Why not make a "native" game instead!?
It's a lot easier to judge/try games if they run in the browser. For example, try this terrain demo [2] which runs in the browser. One click, and you're experiencing it. If you had to run the native version, it'd be more hassle/work.
[1] https://github.com/shurcooL/eX0/commit/7ba48d00cfd143bca2e5652cd04bc92c262a29d2#commitcomment-10094637 https://github.com/shurcooL/eX0/commit/7ba48d00cfd143bca2e56...
[2] http://dmitri.shuralyov.com/projects/Terrain-Demo/index.html http://dmitri.shuralyov.com/projects/Terrain-Demo/index.html