Open codersmoon opened 4 years ago
The key to most of this is tracing file system calls all the way back to main()
. It won't work if your game requires synchronous file system calls. All of the file loading has to be done up front before game play starts. Unless your game already handles when files become ready. Rendering a frame also has to return to main()
so requestAnimationFrame()
can update the screen.
Counterstrike already has a browser version: https://cs-online.club/en/servers
Here's another example: https://github.com/FWGS/xash3d-fwgs https://github.com/iCrazyBlaze/Xash3D-Emscripten
This is all I could find, this client game appears to run on Xash above: https://github.com/FWGS/cs16-client/tree/v1.32
Source in comments: https://news.ycombinator.com/item?id=23497236
Good questions, I grabbed a copy of all of these.
I want to make other pc games for browsers.For example counter strike 1.5.What should i do?TY