sonic-radiance/sonic-radiance.love/datas/gamedata/skills/spinattack.lua

36 lines
1.2 KiB
Lua
Raw Normal View History

-- A basic file describing the basic attack, in order to make it customizable one
-- day ?
-- Also serve as a tutoriel for how to create a file attack and choregraphy
return {
2019-08-22 21:32:52 +02:00
name = "spinattack",
2020-08-23 08:53:44 +02:00
fullname = "Spin Attack",
cost = 03,
description = "Spin to attack. Roll at the right time for more damages",
2020-07-20 12:24:26 +02:00
targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true,
choregraphy = { -- the main attack choregraphy
2020-07-25 17:07:53 +02:00
{"setAnimation", "none", "walk", false},
{"goTo", "none", "target", 0, 0, 0.6, false},
{"wait", "none", 0.3},
{"setAnimation", "none", "spin", false},
2019-08-31 15:44:34 +02:00
{'playSFX', "none", 'spinrelease'},
2020-07-25 17:07:53 +02:00
{"waitActorFinished", "none", "goTo"},
{"sendDamage", "none", 120, 100, false, false},
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
2019-08-31 15:44:34 +02:00
{'playSFX', "sentDamage", 'hitconnect'},
2020-07-25 10:25:14 +02:00
{'jumpBack', "none", 0.3, true},
2020-07-25 17:07:53 +02:00
{"wait", "none", 0.1},
{"setAnimation", "none", "walk", false},
{'goTo', "none", "start", 0, 0, 0.3, true},
{'setAnimation', "none", 'idle', false},
},
onContact = { -- if the attack move and touch multiple ennemies, you can add
-- specific effect when you touch the ennemy.
},
}