aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

New format for easier editing of world files #381

Closed aroberge closed 6 years ago

aroberge commented 6 years ago

Currently, the content of the editors is saved as a single string in a json world file. This makes it extremely difficult to edit outside of Reeborg's World. This should be changed so that such strings are split("\n") to create an array of strings. When importing the worlds, a check should be performed to see if it is an array; if so, join("\n") should be used, otherwise (for backward compatibility), the content should be imported as is.