2D racing game made for GMTK-2025 game jam (https://foxwithkeyboard.itch.io/kartboom) (didn't score too high, was my first jam :p)
Was kinda also a learning project for using emscripten + C + sdl2
Based on sdl-wasm
-
Install Emscripten:
https://emscripten.org/docs/getting_started/downloads.html -
Clone the repository:
git clone https://github.com/Indev450/KartBoom --recursive
cd KartBoom -
Run
make:
RELEASE=1 make
Or if you want to build wasm version:
WASM=1 RELEASE=1 make -
When built native version, run:
./kartboom
For wasm version:
Chrome doesn't support file XHR requests so you need to open index.html from a web server. You can use Emscripten for that too:emrun index.html
There is (incomplete) modding support. Mods are placed in mods/ directory, and can either be zip archives or directories with same structure as assets/.
(wasm version is unable to load mods unfortunately, haven't figured that out atm)
Currently, you can add maps made with Tiled. Maps should be placed in mod's maps/ directory.
Custom params:
id: short string map identifier (liketires)title: name displayed in level select (likeTire Circuit)
In order to work, map also needs:
- Spawn points: "point" object with type
spawnpoint - Checkpoints: "rectangle" objects with type
checkpoint, checkpoints are enumerated usingcheck_idcustom param, starting from 0 - Finish line: "rectangle" object with type
finish
(check assets/maps/map.tmx for reference)
For tileset, you can either use default tileset (assets/tilesets/tileset.tsx) or create your own, which must be included in your mod in tilesets/ directory.
Sprite for tileset must be included in sprites/ directory.
There is also very basic lua scripting support. Scripts are stored in scripts/ directory (beware: at the moment, they run in arbitrary order).
Refer to lua_*.{c,h} source files for list of available functions.
Scripts can also play additional sounds that can be added into sounds/ directory.
Copyright sdl-wasm (c) 2019 Betamark
Copyright KartBoom (c) 2025 Indev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.