feat(skills): add spinjump
This commit is contained in:
parent
325964a47b
commit
7f99e01afd
1 changed files with 31 additions and 0 deletions
31
sonic-radiance.love/datas/gamedata/skills/spinjump.lua
Normal file
31
sonic-radiance.love/datas/gamedata/skills/spinjump.lua
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
-- 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 = "spinjump", -- unused for this attack, but still usefull sometimes
|
||||||
|
cost = 03, -- the pp cost of the attack. Will be ignored if it's set
|
||||||
|
-- as character default attack
|
||||||
|
|
||||||
|
target = {2, -1, "square", 3, true}, -- which area can be selected as a target with the cursor.
|
||||||
|
-- if not nil : {ox, oy, shape, size, affectedByDirection}
|
||||||
|
|
||||||
|
targetNumber = 1, -- how many ennemy you can target with the attack.
|
||||||
|
|
||||||
|
effectArea = {1, 0, "point", 1, true}, -- which area is affected by the attack
|
||||||
|
-- if not nil : {ox, oy, shape, size, affectedByDirection}
|
||||||
|
|
||||||
|
choregraphy = { -- the main attack choregraphy
|
||||||
|
{"setAnimation", "none", "spinjump", false},
|
||||||
|
{'jumpToCursor', 'none', true},
|
||||||
|
{"sendDamageFromCursor", "none", 0, 0, 110, 100, false, true, true},
|
||||||
|
{'addGFX', "sentDamage", 'hitGFX', 0, 0, true, false},
|
||||||
|
--{'jumpBack', "none", true},
|
||||||
|
{'setAnimation', "none", 'idle', false},
|
||||||
|
},
|
||||||
|
|
||||||
|
onContact = { -- if the attack move and touch multiple ennemies, you can add
|
||||||
|
-- specific effect when you touch the ennemy.
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in a new issue