]> Dogcows Code - chaz/yoink/blobdiff - data/animations/Heroine.lua
converted json sequences to lua
[chaz/yoink] / data / animations / Heroine.lua
diff --git a/data/animations/Heroine.lua b/data/animations/Heroine.lua
new file mode 100644 (file)
index 0000000..02ca422
--- /dev/null
@@ -0,0 +1,175 @@
+
+-- Animation sequences for the Heroine
+
+print "loading Heroine animation sequences"
+
+
+DefineSequence("Stand",
+{
+       class = STAND,
+       delay = 1,
+       frames = {
+               { index = 1, duration = 4 },
+               { index = 3, duration = 0.1 },
+               { index = 1, duration = 0.1 },
+               { index = 3, duration = 0.1 },
+               { index = 1, duration = 2 },
+               { index = 0, duration = 2 },
+               { index = 1, duration = 0.1 },
+               { index = 2, duration = 2 },
+               { index = 1, duration = 3 },
+               { index = 3, duration = 0.1 },
+               { index = 1, duration = 0.1 },
+               { index = 3, duration = 0.1 },
+               { index = 1, duration = 2 },
+               { index = 0, duration = 4 },
+               { index = 1, duration = 0.1 },
+               { index = 2, duration = 3 },
+               { index = 1, duration = 0.1 },
+               { index = 0, duration = 1 },
+               { index = 1, duration = 2 },
+               { index = 3, duration = 0.1 },
+               { index = 1, duration = 0.1 },
+               { index = 3, duration = 0.1 }
+       }
+})
+
+DefineSequence("Blink",
+{
+       class = STAND,
+       delay = 0.25,
+       following = "Stand",
+       frames = {
+               { index = 3, duration = 0.25 }
+       }
+})
+
+DefineSequence("Run",
+{
+       class = RUN,
+       delay = 0.25,
+       frames = {
+               { index = 4 },
+               { index = 5 },
+               { index = 6 },
+               { index = 7 }
+       }
+})
+
+DefineSequence("StopRunning",
+{
+       class = STAND,
+       delay = 10,
+       following = "Stand",
+       loop = true,
+       frames = {
+               { index = 8 }
+       }
+})
+
+DefineSequence("Jump",
+{
+       class = JUMP,
+       following = "FlyDiagonallyUp",
+       delay = 0.25,
+       frames = {
+               { index = 9, duration = 0.25 }
+       }
+})
+
+DefineSequence("Land",
+{
+       class = STAND,
+       delay = 0.5,
+       following = "StopRunning",
+       frames = {
+               { index = 9, duration = 0.25 }
+       }
+})
+
+DefineSequence("FlyDiagonallyUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 10 },
+               { index = 11 }
+       }
+})
+
+DefineSequence("FlyDiagonallyDown",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 12 },
+               { index = 13 }
+       }
+})
+
+DefineSequence("FlyStraightUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 0 }
+       }
+})
+
+DefineSequence("FlyHorizontally",
+{
+       class = FLY,
+       frames = {
+               { index = 4 },
+               { index = 14 }
+       }
+})
+
+DefineSequence("StartCharging",
+{
+       class = CHARGE,
+       delay = 0.2,
+       following = "Charge",
+       frames = {
+               { index = 21 }
+       }
+})
+
+DefineSequence("Charge",
+{
+       class = CHARGE,
+       delay = 0.2,
+       loop = true,
+       frames = {
+               { index = 22 }
+       }
+})
+
+DefineSequence("FireCharge",
+{
+       class = CHARGE,
+       delay = 0.2,
+       frames = {
+               { index = 23 }
+       }
+})
+
+DefineSequence("KnockedDown",
+{
+       class = HIT,
+       delay = 0.1,
+       frames = {
+               { index = 17 },
+               { index = 18 }
+       }
+})
+
+DefineSequence("Flattened",
+{
+       class = HIT,
+       delay = 1,
+       frames = {
+               { index = 19 }
+       }
+})
+
This page took 0.018826 seconds and 4 git commands to generate.