Skip to content
/ kit Public

A tiny library for making small games with big pixels

Notifications You must be signed in to change notification settings

rxi/kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages