rxi / kit

A tiny library for making small games with big pixels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kit

A tiny library for making small games with big pixels

Example

#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;
}

Overview

  • 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

Usage

Build using tcc, gcc (-lgdi32 -luser32 -lwinmm) or msvc. See the demo.

License

Public domain ⁠— no warranty implied; use at your own risk.

About

A tiny library for making small games with big pixels


Languages

Language:C 100.0%