Create level editor for Slice3D
So far, the concept of levels has been left completely up to the application. Not all Slice3D games would use developer-created levels but those that do are probably going to have a lot in common.
Components:
- API: Level objects, wrapping visual Slice3D objects and optionally holding physics information.
- API: Save level objects to file. (File format needs to be flexible, perhaps using JSON.)
- API: Load level objects from file.
- API: Clear all level objects.
Level objects details:
- Use
virtual
functions (if not overridden, empty{}
implementation) for saving and loading custom key-value details. - Level editor program which is just an app with nice UI on top of the save/load API. Interaction may be limited to moving the camera around the current level while editing is performed by console commands at first, or editing numeric values in an object browser. Eventually some tools to move items around and resize them "physically" with the mouse would be nice to have.