Skip to content

Instantly share code, notes, and snippets.

@zaphire
Created April 6, 2011 08:23
Show Gist options
  • Save zaphire/905324 to your computer and use it in GitHub Desktop.
Save zaphire/905324 to your computer and use it in GitHub Desktop.
XML: Puppet File Structure
<TextureAtlas image="graphics/monocleman.png" width="512" height="512">
<TextureAtlasEntry name="torso" coords="262 2 90 118"/>
<TextureAtlasEntry name="tortilla" coords="2 2 258 183"/>
<TextureAtlasEntry name="mustache" coords="262 122 109 43"/>
<TextureAtlasEntry name="nose" coords="354 2 40 81"/>
<TextureAtlasEntry name="hat" coords="396 2 86 69"/>
<TextureAtlasEntry name="eye-left" coords="62 249 12 15"/>
<TextureAtlasEntry name="eye-right" coords="76 249 12 14"/>
<TextureAtlasEntry name="eyeunderline-left" coords="396 73 28 10"/>
<TextureAtlasEntry name="eyebrow" coords="46 281 42 16"/>
<TextureAtlasEntry name="monocle" coords="119 187 54 50"/>
</TextureAtlas>
<Parts>
<Part id="0" name="torso" atlas="torso">
<Part id="1" name="tortilla" atlas="tortilla">
<Part id="2" name="mustache" atlas="mustache"/>
<Part id="3" name="hat" atlas="hat"/>
<Part id="4" name="nose" atlas="nose"/>
<Part id="5" name="monocle" atlas="monocle"/>
<Part id="6" name="" atlas="eyeunderline-left"/>
<Part id="7" name="" atlas="eye-left"/>
<Part id="8" name="" atlas="eye-right"/>
<Part id="9" name="" atlas="eyebrow"/>
</Part>
</Part>
</Parts>
<AnimationLayers>
<AnimationLayer name="head" ids="1 2 3 4 5 6 7 8 9 "/>
<AnimationLayer name="body" idx="0 "/>
</AnimationLayers>
<Animations>
<Animation name="idle">
<PartKeyFrames id="0">
<KeyFrame time="0" position="-50 0"/>
<KeyFrame time="0.5" position="50 0"/>
<KeyFrame time="1" position="-50 0"/>
</PartKeyFrames>
<PartKeyFrames id="1">
<KeyFrame time="0" position="0 -138" rotation="-10"/>
<KeyFrame time="0.5" position="0 -138" rotation="10"/>
<KeyFrame time="1.0" position="0 -138" rotation="-10"/>
</PartKeyFrames>
<PartKeyFrames id="2">
<KeyFrame time="0.0" position="0 52" rotation="-10"/>
<KeyFrame time="0.25" position="0 52" rotation="10"/>
<KeyFrame time="0.5" position="0 52" rotation="-10"/>
<KeyFrame time="0.75" position="0 52" rotation="10"/>
<KeyFrame time="1.0" position="0 52" rotation="-10"/>
</PartKeyFrames>
<PartKeyFrames id="3">
<KeyFrame time="0" position="-10 -95"/>
</PartKeyFrames>
<PartKeyFrames id="4">
<KeyFrame time="0" position="0 5"/>
</PartKeyFrames>
<PartKeyFrames id="5">
<KeyFrame time="0" position="20 -28"/>
</PartKeyFrames>
<PartKeyFrames id="6">
<KeyFrame time="0" position="-35 4"/>
</PartKeyFrames>
<PartKeyFrames id="7">
<KeyFrame time="0" position="-30 -11"/>
</PartKeyFrames>
<PartKeyFrames id="8">
<KeyFrame time="0" position="11 -22"/>
</PartKeyFrames>
<PartKeyFrames id="9">
<KeyFrame time="0" position="-29 -26"/>
</PartKeyFrames>
</Animation>
</Animations>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment