A tiny library for making small games with big pixels
#define KIT_IMPL
#include "kit.h"
int main(void) {
kit_Context *ctx = kit_create("hi", 320, 200, KIT_SCALE2X);
while (kit_step(ctx, NULL)) {
kit_draw_text(ctx, KIT_WHITE, "Hello world!", 10, 10);
}
kit_destroy(ctx);
return 0;
}
- Small single header library: ~1.3k lines of C
- Software rendered images and bitmap fonts
- Keyboard and mouse input
- PNG Loading (borrowed from tigr)
- No dependencies
- Windows only
Build using tcc
, gcc
(-lgdi32 -luser32 -lwinmm
) or msvc
. See the demo.
Public domain — no warranty implied; use at your own risk.