Map editor for 2D games with XML map format