Live demo deathmatch ~80mb
In the title you'll see ololoken.NNNN— this is your virtual lan host name.
When you create LAN server another player can connect to your game using console command connect ololoken.NNNN.
Just send him the link to the demo and your virtual host name.
Here you can see running game server in iphone's browser with connected desktop client.
In case of any issues open demos in private tab and/or using dev console purge indexeddb with name /xash.
Dev tools console command is indexedDB.deleteDatabase('/xash').
First, install and configure emsdk.
emconfigure ./waf configure --emscripten && emmake ./waf build && emmake ./waf install --destdir ./out
emscripten hlsdk-portable fork
emconfigure ./waf configure --emscripten -T release && emmake ./waf && emconfigure ./waf install --destdir out
copy output to src/assets/module
To run the game you'll need data pack:
- cd /path/to/hl/valve
zip -r -9 data.zip .- copy data.zip to
src/assets/module - run server
npx tsx server.tsin the source root - run
npm run devin the source root - http://localhost:8086 here will be your game