• Stars
    star
    240
  • Rank 162,316 (Top 4 %)
  • Language
    C
  • Created about 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tiny library for making small games with big pixels

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.

More Repositories

1

lite

A lightweight text editor written in Lua
Lua
7,254
star
2

microui

A tiny immediate-mode UI library
C
3,124
star
3

log.c

A simple logging library implemented in C99
C
2,472
star
4

json.lua

A lightweight JSON library for Lua
Lua
1,734
star
5

dyad

Asynchronous networking for C
C
1,432
star
6

fe

A tiny, embeddable language implemented in ANSI C
C
1,262
star
7

lume

Lua functions geared towards gamedev
Lua
945
star
8

classic

Tiny class module for Lua
Lua
799
star
9

lovedos

A framework for making 2D DOS games in Lua
C
659
star
10

map

A type-safe hash map implementation for C
C
553
star
11

vec

A type-safe dynamic array implementation for C
C
426
star
12

microtar

A lightweight tar library written in ANSI C
C
423
star
13

flux

A fast, lightweight tweening library for Lua
Lua
354
star
14

lite-plugins

Plugins for the lite text editor
Lua
342
star
15

ini

A tiny ANSI C library for loading .ini config files
C
315
star
16

log.lua

A tiny logging module for Lua
Lua
287
star
17

lovebird

A browser-based debug console for LΓ–VE
Lua
282
star
18

lurker

Auto-swaps changed Lua files in a running LΓ–VE project
Lua
268
star
19

aq

A lightweight framework for creating audio toys
C
236
star
20

uuid4

A tiny C library for generating uuid4 strings
C
214
star
21

sandbird

A tiny embeddable HTTP server written in C89
C
169
star
22

cmixer

Portable ANSI C audio mixer for games
C
168
star
23

aria

A tiny, embeddable lisp-shaped language implemented in C89
C
166
star
24

sfd

A small C library for opening a file dialog
C
165
star
25

juno

Framework for making 2D games with chunky pixels in Lua
C
160
star
26

tick

Lua module for delaying function calls
Lua
123
star
27

autobatch

Small LΓ–VE module to automate the use of SpriteBatches
Lua
103
star
28

lite-colors

Colors themes for the lite text editor
Lua
99
star
29

dmt

Dynamic memory tracker for C
C
99
star
30

cembed

A small utility for embedding files in a C header
C
90
star
31

doq

A small tool for creating single-file html documents
C
82
star
32

lovebpm

A LΓ–VE library for syncing events to the BPM of an audio track
Lua
76
star
33

coil

A tiny cooperative threading module for Lua
Lua
71
star
34

shash

A simple, lightweight spatial hash for Lua
Lua
64
star
35

console

A console plugin for the lite text editor
Lua
57
star
36

atlas

A small utility for generating a texture atlas
C
41
star
37

rxi.github.io

HTML
17
star
38

gifwriter

A Nim library for writing animated GIFs
C
17
star
39

cmixer_sdl2-nim

Tiny Nim library for using cmixer with sdl2
Nim
3
star
40

cmixer-nim

Nim wrapper for cmixer, A lightweight audio mixer for games
C
3
star
41

crate

2
star