Skip to content
Tiny C games you can compile and run RIGHT NOW
C HTML C++ Objective-C GLSL CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_mac switching to stb_image from sdl_image Apr 20, 2018
_osn
_stb switching to stb_image from sdl_image Apr 20, 2018
_win
blocko
flappy
maker
tet Blocko: Switch to Simplex noise Apr 24, 2020
valet Blocko: Switch to Simplex noise Apr 24, 2020
zel
.gitignore
LICENSE
README.md Blocko: MacOS compatibility + some little fixes Apr 29, 2020

README.md

tinyc.games

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.

Screens

Tet Flappy Blocko

How do I do it?

For Blocko, see blocko/README.md. For everything else:

Windows

  1. TCC, SDL2, and GLEW are already included!
  2. Open a game folder and run run-windows.bat

Mac

  1. Install clang by typing "clang" in Terminal and clicking the Install button.
  2. Open a game folder and run run-mac.sh

Linux

  1. 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

  2. Open a game folder and run run-linux.sh

Next?

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.

You can’t perform that action at this time.