Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can ı make other pc games for browsers ? #68

Open
codersmoon opened this issue Jul 28, 2020 · 1 comment
Open

How can ı make other pc games for browsers ? #68

codersmoon opened this issue Jul 28, 2020 · 1 comment

Comments

@codersmoon
Copy link

I want to make other pc games for browsers.For example counter strike 1.5.What should i do?TY

@ghost
Copy link

ghost commented Aug 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant