Tiny C games you can compile and run RIGHT NOW.
Tools and libraries are available for making cross-platform C games, but simple examples can be hard to find.
This project is an example of how you can get started making a game in C that will work on Windows, Mac and Linux.
How do I do it?
For Blocko, see blocko/README.md. For everything else:
- TCC, SDL2, and GLEW are already included!
- Open a game folder and run run-windows.bat
- Install clang by typing "clang" in Terminal and clicking the Install button.
- Open a game folder and run run-mac.sh
Install tcc, libSDL2 with TTF support, and libGLEW. E.g. for Debian/Ubuntu/Mint:
sudo apt install tcc libsdl2-dev libsdl2-ttf-dev libglew-dev
Open a game folder and run run-linux.sh
After you've run a game, open the .c file in your favorite text editor. You're now looking at the actual code you just ran. You can edit it and run it again with your changes.