]> Dogcows Code - chaz/yoink/blobdiff - data/animations/AlienWarrior.lua
converted json sequences to lua
[chaz/yoink] / data / animations / AlienWarrior.lua
diff --git a/data/animations/AlienWarrior.lua b/data/animations/AlienWarrior.lua
new file mode 100644 (file)
index 0000000..b722e97
--- /dev/null
@@ -0,0 +1,157 @@
+
+-- Animation sequences for the alien warrior dude
+
+print "loading alien warrior animation sequences"
+
+DefineSequence("Stand",
+{
+       class = STAND,
+       delay = 1,
+       frames = {
+               { index = 0, duration = 2 },
+               { index = 1, duration = 0.25 },
+               { index = 2, duration = 2 },
+               { index = 1, duration = 0.25 }
+       }
+})
+
+DefineSequence("Run",
+{
+       class = RUN,
+       delay = 0.25,
+       frames = {
+               { index = 3 },
+               { index = 4 },
+               { index = 5 },
+               { index = 6 }
+       }
+})
+
+DefineSequence("StopRunning",
+{
+       class = RUN,
+       delay = 0.25,
+       following = "Stand",
+       loop = true,
+       frames = {
+               { index = 7 }
+       }
+})
+
+DefineSequence("Jump",
+{
+       class = JUMP,
+       delay = 0.25,
+       following = "FlyDiagonallyUp",
+       frames = {
+               { index = 17 }
+       }
+})
+
+DefineSequence("Land",
+{
+       class = STAND,
+       delay = 1,
+       following = "Stand",
+       frames = {
+               { index = 13, duration = 0.25 }
+       }
+})
+
+DefineSequence("FlyDiagonallyUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("FlyDiagonallyDown",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 19 }
+       }
+})
+
+DefineSequence("FlyStraightUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 19 }
+       }
+})
+
+DefineSequence("FlyStraightUp",
+{
+       class = FLY,
+       frames = {
+               { index = 3 }
+       }
+})
+
+DefineSequence("Punch",
+{
+       class = ATTACK,
+       delay = 0.2,
+       frames = {
+               { index = 8 },
+               { index = 9 }
+       }
+})
+
+DefineSequence("StartFiring",
+{
+       class = ATTACK,
+       delay = 0.1,
+       following = "Fire",
+       frames = {
+               { index = 0 },
+               { index = 8 }
+       }
+})
+
+DefineSequence("Fire",
+{
+       class = ATTACK,
+       delay = 1,
+       frames = {
+               { index = 10, duration = 0.2 },
+               { index = 12, duration = 0.2 }
+       }
+})
+
+DefineSequence("StopFiring",
+{
+       class = ATTACK,
+       delay = 0.1,
+       following = "Stand",
+       frames = {
+               { index = 8 },
+               { index = 0 }
+       }
+})
+
+DefineSequence("KnockedDown",
+{
+       class = HIT,
+       delay = 0.1,
+       loop = true,
+       frames = {
+               { index = 16 },
+               { index = 15 }
+       }
+})
+
+DefineSequence("Flattened",
+{
+       class = HIT,
+       delay = 1,
+       frames = {
+               { index = 13 }
+       }
+})
+
This page took 0.018805 seconds and 4 git commands to generate.