SRB2Kart is a kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2, based on a modified version of Doom Legacy.
SRB2Kart Web is a port of SRB2Kart to WASM (Emscripten) to play in web browsers.
Kart Krew is in no way affiliated with SEGA or Sonic Team. We do not claim ownership of any of SEGA's intellectual property used in SRB2.
This project (mostly C related stuff and bash scripts) is helped with AI. This doesn't mean that I didn't build anything at all, since I still wrote the launcher page and relay server used for this game.
This is almost the exact same as SRB2web's readme, but it only works on Linux or WSL (Windows Subsystem for Linux).
- Node.JS (Latest should be fine)
- NPM (Should be included with Node JS by default)
sudo apt install git cmake build-essential python3(Compilation dependencies)
SRB2KartWeb uses very large files for it's resources, making it difficult to upload them directly into the github repo, so you must manually run ./get-assets.sh, this should create an directory called game-assets.
SRB2KartWeb is two separate parts for the site (located in launcher-src) and the game (located in src). To install the dependencies for the launcher use npm install.
This is usually skippable if you already have build-wasm/bin/srb2kart.js and build-wasm/bin/srb2kart.wasm already, but if you plan to modify the game's code or compile your own, you can use ./setup-build.sh for the very first build and then ./build-wasm.sh for every build once ./setup-build.sh completes.
Once you have obtained build-wasm/bin/srb2kart.js and build-wasm/bin/srb2kart.wasm, you can run npm run build to build the launcher, but if you plan to edit the launcher, instead of rebuilding every time you can use npm run start to start up a http server on http://localhost:3000/ that automatically rebuilds every time you edit the launcher's code.
Note
If you plan to play the build you must use a http server or host it on a website.
This is because browsers don't give programmable access to files on file:// URLs.
