UpdateAdded some helper abilities, for example Trixie now crawls into a tunnel automatically if the player is pressing forwards.
Technical FunI'll add technical bits in my updates occasionally if I think it might be interesting.
Here's some of the XML that defines Trixie's animations.
<Strip name="Idle" filename="Idle.png"/>
<Strip name="Turn"
filename="Turn.png"
cels="3"
length="0.06">
</Strip>
<Strip name="Walk"
filename="Walk.png"
cels="6"
length="0.1"
dx="2"
initialCel="1">
<Cel index="1" dx="1"/>
<Cel index="4" dx="1"/>
</Strip>
Idle is a single frame so doesn't need any details.
Turn is a straightforward animation - 3 cels (frames), 0.06 seconds each.
The Walk animation also includes movement info (dx is change in X position). So Trixie moves forwards 2 pixels per animation cel, except on cels 1 and 4 where she moves only 1 pixel. This ensures movement of the sprite is exactly in sync with the animation, so her feet don't slide around on the floor.
In the same way that I've specified dx for specific cels, it's also possible to specify animation timings per cel, so if necessary I can tweak anims quite precisely (though I haven't needed it yet).
It looks a bit long-winded, but most animations don't use cel-specific details or have movement info, so it's quick enough to add new animations to the file.