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.
git submodule update --init
pacman -S mingw-w64-ucrt-x86_64-gcc
pacman -S make
make sokol
(cd build && ./game_sokol.exe)
pacman -S mingw-w64-ucrt-x86_64-gcc
pacman -S make
pacman -S mingw-w64-ucrt-x86_64-SDL2
make sdl
C:\msys64\ucrt64\bin\SDL2.dll
into build
and run (cd build && ./game_sdl.exe)
make sokol
(cd build && ./game_sokol)
brew install sdl2
make sdl
(cd build && ./game_sdl)
apt install libx11-dev libxcursor-dev libxi-dev libasound2-dev
make sokol
(cd build && ./game_sokol)
apt install libsdl2-dev
make sdl
(cd build && ./game_sdl)
pacman install libx11 libxcursor libxi alsa-lib
make sokol
(cd build && ./game_sokol)
pacman -S sdl2
make sdl
(cd build && ./game_sdl)
dnf install libX11-devel libXcursor-devel libXi-devel alsa-lib-devel
make sokol
(cd build && ./game_sokol)
dnf install SDL2-devel
make sdl
(cd build && ./game_sdl)
zypper install libX11-devel libXcursor-devel libXi-devel alsa-lib-devel
make sokol
(cd build && ./game_sokol)
zypper install SDL2-devel
make sdl
(cd build && ./game_sdl)
emsdk
make wasm
build/wasm/*
to your webserverAll 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