When you click tile, grass will appear
-- New object will dynamically be added to game (wade.createobject...)
Save button: Converts current map as JSON
^^ Use "level"-class in this too! So level-class should be helpful class which is used to load and save level data. It handles cycle "wade objects" -> levelObject -> JSON and JSON -> levelObject -> "wade objects"
Proof of concept:
Create very basic map editor, which will save JSON-data
How to save JSON-data: http://www.json.org/js.html <- read Stringify-block
How to create map editor v0.0.1:
^^ Use "level"-class in this too! So level-class should be helpful class which is used to load and save level data. It handles cycle "wade objects" -> levelObject -> JSON and JSON -> levelObject -> "wade objects"