Created
September 24, 2011 23:47
-
-
Save antont/1240007 to your computer and use it in GitHub Desktop.
drafting an xml spec for txml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scene> | |
<entity id="1"> | |
<!--name> | |
<name>Bird</name> | |
<description>A flying bird</description> | |
</name--> | |
<name name="Bird" description="A flying bird" /> | |
<!-- mesh> | |
<meshref>bird.mesh</meshref> | |
<materialref index=0>feathers.material</materialref> | |
<materialref index=1>head.material</materialref> | |
</mesh --> | |
<mesh sync="1" | |
meshref="bird.mesh" | |
materialrefs="feathers.material; head.material" | |
/> | |
<rigidbody shape="box" size="2.5" /> | |
<script src="bird.js" /> | |
</entity> | |
<entity id="2"> | |
<light | |
diffuse="100, 120, 120" | |
... | |
/> | |
</entity> | |
</scene> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment