Compiling tilemap