SDL 1.2 platformer engine