Work on OpenGL support and TMX map loading