This project allows you to play Counter-Strike 1.6 directly in your browser using the Xash3D FWGS engine, compiled to WebAssembly by WebXash3D-FWGS.
├── get_cs_assets
├── cs # CS 1.6 installation directory
.
├── cstrike
└── valve
├── steamcmd # SteamCMD installation directory
├── download-assets-linux.sh # Linux/Mac asset downloader
└── download-assets-win.bat # Windows asset downloader
├── index.html # Main game page
├── README.md
└── valve.zip # Game assets -
Run the
download-assets-win.batfile:download-assets-win.bat
This will:
- Install SteamCMD if not already installed.
- Download Counter-Strike 1.6 assets.
- Save them inside a
csfolder.
-
Zip the
cstrikeandvalvefolders into a singlevalve.zipfile.
-
Make the script executable:
chmod +x download-assets-linux.sh
-
Run it:
./download-assets-linux.sh
-
Once downloaded, zip the
cstrikeandvalvefolders:zip -r ../valve.zip ./cs/cstrike ./cs/valve
- Ensure the
valve.zipfile is in the same directory asindex.html.
In this case we are using Node.js, make sure you have it installed on your computer.
The serve package will be used to serve the entire current folder over HTTP on your local network (intranet).
npx serve -p 8080 If you want to restrict and have it accessible only on your computer (localhost) you can use the following command:
npx serve -p 8080 -l 127.0.0.1-
Open your browser and go to:
http://localhost:8080
-
Wait for the assets to load.
-
Click "Go Fullscreen" when ready.
-
Enjoy Counter-Strike 1.6 in your browser!
Note: The CS 1.6 assets are not included in this project. Users must provide their own legally-owned copy of the game. This project is for non-commercial, non-profit purposes only.