sonic-radiance/sonic-radiance.love/datas/gamedata/ennemies/skills/tackle.lua

29 lines
850 B
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 {
name = "tackle",
cost = 0,
targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true,
isSpecial = false,
choregraphy = { -- the main attack choregraphy
2021-07-18 14:09:39 +02:00
{"goTo3D", "none", "target", -0.4, 0, 0, 0.5, true},
{"sendDamage", "none", 120, "basic", "none", false},
{'addGFX', "sentDamage", 'hitGFX', "target", -0.4, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'},
2021-07-18 14:09:39 +02:00
{'jumpBack', "none", 4, 8, true},
{"wait", "none", 0.1},
2021-07-18 14:09:39 +02:00
{'goTo3D', "none", "start", 0, 0, 0, 0.3, true},
},
onContact = { -- if the attack move and touch multiple ennemies, you can add
-- specific effect when you touch the ennemy.
},
}