A simple (but complete) game engine in 5k lines of C code