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