A level editor for 2d games