This is the source code for the 2d platformer Biolab Disaster, using the high_impact game engine.
Play the WASM version here: https://phoboslab.org/high_impact/biolab
More about high_impact in my Blog Porting my JavaScript Game Engine to C for No Reason
A Makefile that converts all assets and compiles with different platforms and
renderers is provided. See the first few lines in Makefile
for more info.
- Clone this repository
git submodule update --init
- Download and install msys2: https://www.msys2.org/
- start the msys2 ucrt64 shell
- install gcc:
pacman -S mingw-w64-ucrt-x86_64-gcc
- install make:
pacman -S make
make sokol
- run
(cd build && ./game_sokol.exe)
- Download and install msys2: https://www.msys2.org/
- start the msys2 ucrt64 shell
- install gcc:
pacman -S mingw-w64-ucrt-x86_64-gcc
- install make:
pacman -S make
- install sdl2:
pacman -S mingw-w64-ucrt-x86_64-SDL2
make sdl
- copy
C:\msys64\ucrt64\bin\SDL2.dll
intobuild
and run(cd build && ./game_sdl.exe)
make sokol
- run
(cd build && ./game_sokol)
- Install homebrew: https://brew.sh/
- install sdl2:
brew install sdl2
make sdl
- run
(cd build && ./game_sdl)
apt install libx11-dev libxcursor-dev libxi-dev libasound2-dev
make sokol
- run
(cd build && ./game_sokol)
apt install libsdl2-dev
make sdl
- run
(cd build && ./game_sdl)
pacman install libx11 libxcursor libxi alsa-lib
make sokol
- run
(cd build && ./game_sokol)
pacman -S sdl2
make sdl
- run
(cd build && ./game_sdl)
dnf install libX11-devel libXcursor-devel libXi-devel alsa-lib-devel
make sokol
- run
(cd build && ./game_sokol)
dnf install SDL2-devel
make sdl
- run
(cd build && ./game_sdl)
zypper install libX11-devel libXcursor-devel libXi-devel alsa-lib-devel
make sokol
- run
(cd build && ./game_sokol)
zypper install SDL2-devel
make sdl
- run
(cd build && ./game_sdl)
- Install and activate
emsdk
make wasm
- copy
build/wasm/*
to your webserver
All high_impact and game code is MIT Licensed, though some of the libraries (high_impact/libs/
) come with their own (permissive) license. Check the header files.
Note that the assets (sound, music, graphics) don't come with any license. You cannot use those in your own games