These games were originally written for Windows but have since been ported over to SDL2
This project uses SDL_bgi: https://sourceforge.net/projects/sdl-bgi/
Requires the following dependencies:
sudo apt-get install -y make build-essential pkg-config libsdl2-dev
To build the games:
make
To build the browser versions:
make web
The browser build outputs files under build/web. Serve that directory with a local web server and open one of the generated .html files.
Optionally build using docker:
docker compose build
docker compose run --rm make
The compiled games can then be run in linux:
battleship/battle_spaceship.exe
celda/celda.exe
tetris/tetris.exe






