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

28 lines
862 B
Lua
Raw Normal View History

2019-08-25 10:40:34 +02:00
-- 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 {
2020-07-20 12:24:26 +02:00
name = "spinjump",
cost = 03,
2019-08-25 10:40:34 +02:00
2020-07-20 12:24:26 +02:00
targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true,
2019-08-25 10:40:34 +02:00
choregraphy = { -- the main attack choregraphy
{"setAnimation", "none", "spinjump", false},
2019-08-31 15:44:34 +02:00
{'playSFX', "none", 'jump'},
2020-07-25 10:25:14 +02:00
{'jumpTo', 'none', "target", 0, 0, 0.5, true},
{"sendDamage", "none", 110, 100, false, true},
{'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},
2019-08-25 10:40:34 +02:00
{'setAnimation', "none", 'idle', false},
},
onContact = { -- if the attack move and touch multiple ennemies, you can add
-- specific effect when you touch the ennemy.
},
}