a minimal 2d game engine in C