Scene file format

I have decided to use my own file format for saving scenes, rather than using xml, and I’m very happy with the results.

A simple scene…

Node rootNode
CameraNode camera 0 0 500 0 0 0 End
PlayerNode player 10 0 0 0 0 0
MeshNode playerMesh data/spaceship.mesh End
End
End

Basically each node controls what it wants to save and load.

And here is the scene…
Screenshot

Advertisements