Skip to content

Latest commit

 

History

History
79 lines (49 loc) · 1.49 KB

README.md

File metadata and controls

79 lines (49 loc) · 1.49 KB

Graph File Format

A text format used to save & load hierarchical data from
.graph  files, primarily designed for saving game states.


Button Example   Button Format   Button Video



Credit for the design goes to my Dad.



Goals


 Simple as Possible 
  
 Frictionless 
  
 Easy to Read / Parse 



Format Example

A small example of how you can structure data in graph files.


/* An example of the .graph file format */

Model {
    
    Id { "Basic Component" }
    
    Shape {
        0  0  50 10  70 40
       84 31   6 12   1 23
    }
    
    Density { 0.4 }
    
    Position {
        X { -4 }
        Y {  3 }
        z { 10 }
    }
}