Save System

From Studio Grow Wiki
Revision as of 09:45, 11 April 2011 by Oshroth (talk | contribs)
Jump to: navigation, search

What are the required features?

  • Multiple save states
  • Load resets the level
  • Hierarchal grouping
  • Load into player object and scene objects
  • Save everything in an xml file

What needs to be saved?

  • Player State
    • Inventory
    • Current Scene
    • Current Transform?
  • Multiple Scenes
    • Scene State
      • Movable Objects
        • Current Transform
      • Event Flags

File Template <enscript lang=html> <?xml version="1.0" encoding="ISO-8859-1"?> <root> <player> <inventory /> <level name="mapname" /> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </player> <scenes> <scene name="map1"> <object name="obj1"> <position x="0" y="0" z="0" /> <rotation x="0" y="0" z="0" /> <scale x="0" y="0" z="0" /> </object> <events> <event id="shortname" value="1" /> </events> </scene> </scenes> </root> </enscript>