A flexible editor for 2D games