Save map in a file at runtime freeze the engine

Place objects on the stage in the editor. And at loading change their properties according to the saved data. Spawn gives an additional unjustified load.