]> Dogcows Code - chaz/yoink/blobdiff - data/animations/RobotTrooper.lua
converted json sequences to lua
[chaz/yoink] / data / animations / RobotTrooper.lua
diff --git a/data/animations/RobotTrooper.lua b/data/animations/RobotTrooper.lua
new file mode 100644 (file)
index 0000000..3a15da2
--- /dev/null
@@ -0,0 +1,165 @@
+
+-- Animation sequences for the robot trooper bad guy
+
+print "loading RobotTrooper 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 = 4 },
+               { index = 5 },
+               { index = 6 },
+               { index = 7 }
+       }
+})
+
+DefineSequence("StopRunning",
+{
+       class = STAND,
+       delay = 0.25,
+       following = "Stand",
+       loop = true,
+       frames = {
+               { index = 5 }
+       }
+})
+
+DefineSequence("Jump",
+{
+       class = JUMP,
+       following = "FlyDiagonallyUp",
+       delay = 0.25,
+       frames = {
+               { index = 17 }
+       }
+})
+
+DefineSequence("Land",
+{
+       class = STAND,
+       delay = 1,
+       following = "Stand",
+       loop = true,
+       frames = {
+               { index = 19, duration = 0.25 },
+               { index = 14, duration = 0.25 }
+       }
+})
+
+DefineSequence("FlyDiagonallyUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("FlyDiagonallyDown",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("FlyStraightUp",
+{
+       class = FLY,
+       delay = 0.1,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("FlyHorizontally",
+{
+       class = FLY,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("Punch",
+{
+       class = ATTACK,
+       delay = 0.05,
+       following = "Stand",
+       frames = {
+               { index = 8 },
+               { index = 9 },
+               { index = 10 },
+               { index = 11 },
+               { index = 12 },
+               { index = 13 }
+       }
+})
+
+DefineSequence("StartFiring",
+{
+       class = ATTACK,
+       delay = 0.1,
+       following = "Fire",
+       frames = {
+               { index = 14 },
+               { index = 15 },
+               { index = 16 }
+       }
+})
+
+DefineSequence("Fire",
+{
+       class = ATTACK,
+       delay = 1,
+       frames = {
+               { index = 17, duration = 0.2 },
+               { index = 16, duration = 0.2 }
+       }
+})
+
+DefineSequence("StopFiring",
+{
+       class = ATTACK,
+       delay = 0.1,
+       following = "Stand",
+       frames = {
+               { index = 16 },
+               { index = 15 },
+               { index = 14 }
+       }
+})
+
+DefineSequence("KnockedDown",
+{
+       class = HIT,
+       delay = 1,
+       frames = {
+               { index = 18 }
+       }
+})
+
+DefineSequence("Flattened",
+{
+       class = HIT,
+       delay = 1,
+       frames = {
+               { index = 19 }
+       }
+})
+
This page took 0.019342 seconds and 4 git commands to generate.