X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=data%2Fanimations%2FAlienWarrior.lua;fp=data%2Fanimations%2FAlienWarrior.lua;h=b722e97e23de94d577e4e39a37c0ca09a053e53b;hp=0000000000000000000000000000000000000000;hb=fa9438c66ae0154e6d9ad196e0fb39649d359da4;hpb=fcb40aa40c6a13ca0e0962b35973ac4574779574 diff --git a/data/animations/AlienWarrior.lua b/data/animations/AlienWarrior.lua new file mode 100644 index 0000000..b722e97 --- /dev/null +++ b/data/animations/AlienWarrior.lua @@ -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 } + } +}) +