Skip to content

Text data format designed for games.

Notifications You must be signed in to change notification settings

PhoneDroid/graph-file-format

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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 }
    }
}