2D engine in C, with scripting support