Home

Awesome

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

Games

Tet

A Tetris clone which is getting way too large. Cool animations, sound, controller support, multiplayer etc. This is too much for a "tiny" game so I'll be paring it down and moving the fully featured version to its own branch or repo.

Flappy

The original tiny game. It's just Flappy Bird in only around 200 [normal] lines of code. So no dumb tricks, I hope :)

Blocko

A Minecraft (Infiniminer?) clone with too many features once again. Dynamic lighting and overly complex procedural generation. Also needs to be simplified for this repo.

Zel

A top-down adventure game with an overworld and a dungeon. Very minimal, no ending. Too much procedural generation!

Maker

A quick hack to make Zel into more of a 2D platformer. Very rough around the edges. The intention is to add a simple level editor.

How do I do it?

Windows

  1. TCC, SDL2, and GLEW are already included!
  2. Open a game folder and run run-windows.bat
  3. For OpenGL games you will need the Windows SDK from Microsoft

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, SDL2-dev, and GLEW-dev.
  1. Open a game folder and run run-linux.sh

Next?

After you're done playing an exhilirating demo game, open the .c file in your favorite text editor. You're now looking at the actual code you just ran. So feel free to tinker and run it with your changes. Or use it as a starting point for your own game!