fix: drop spin jump and revamp a bit the spindash

This commit is contained in:
Kazhnuz 2020-07-25 16:47:58 +02:00
parent cce03643f6
commit e72fa0cc7f
5 changed files with 41 additions and 42 deletions

View file

@ -1,7 +1,7 @@
return { return {
--{attack_name, level}, --{attack_name, level},
{"spinattack", 2}, {"spinattack", 2},
{"spinjump", 3}, --{"spinjump", 3},
{"spindash", 8}, {"spindash", 8},
{"hommingattack", 11}, {"hommingattack", 11},
{"spinattack", 15}, {"spinattack", 15},

View file

@ -12,31 +12,30 @@ return {
targetNumber = 1, -- 0 for targeting all ennemies targetNumber = 1, -- 0 for targeting all ennemies
choregraphy = { -- the main attack choregraphy choregraphy = { -- the main attack choregraphy
--{'goTo', "none", "target", 0, 0} {'goTo', "none", "target", -1, 0, 0.3, true},
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit1start', true}, {'setAnimation', "none", 'hit1start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "actor", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit1end', true}, {'setAnimation', "none", 'hit1end', true},
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit2start', true}, {'setAnimation', "none", 'hit2start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "actor", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit2end', true}, {'setAnimation', "none", 'hit2end', true},
{'playSFX', "none", 'hit'}, {'playSFX', "none", 'hit'},
{'setAnimation', "none", 'hit3start', true}, {'setAnimation', "none", 'hit3start', true},
{'sendDamage', "none", 33, 100, false, false}, {'sendDamage', "none", 33, 100, false, false},
{'addGFX',"sentDamage", 'hitGFX', "target", 0.75, 0, true, false}, {'addGFX',"sentDamage", 'hitGFX', "actor", 0.75, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'setAnimation', "none", 'hit3end', true}, {'setAnimation', "none", 'hit3end', true},
{'setAnimation', "none", 'idle', false}, {'setAnimation', "none", 'idle', false},
--{'wait', "none", 0.2}, {'wait', "none", 0.2},
--{'goTo', "none", "start", 0, 0}, {'goTo', "none", "start", 0, 0, 0.3, true}
{'wait', "none", 0.5}
}, },
onContact = { -- if the attack move and touch multiple ennemies, you can add onContact = { -- if the attack move and touch multiple ennemies, you can add

View file

@ -1,12 +1,16 @@
-- 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 { return {
name = "spinattack", name = "spinattack",
cost = 05, cost = 03,
targetNumber = 1, -- 0 for targeting all ennemies targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true, targetEnnemies = true,
choregraphy = {
{"setAnimation", "none", "spindash", false}, choregraphy = { -- the main attack choregraphy
{'playSFX', "none", 'spincharge'},
{"wait", "none", 0.5},
{"setAnimation", "none", "spin", false}, {"setAnimation", "none", "spin", false},
{'playSFX', "none", 'spinrelease'}, {'playSFX', "none", 'spinrelease'},
{"goTo", "none", "target", 0, 0, 0.3, true}, {"goTo", "none", "target", 0, 0, 0.3, true},
@ -14,6 +18,10 @@ return {
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false}, {'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'}, {'playSFX', "sentDamage", 'hitconnect'},
{'jumpBack', "none", 0.3, true}, {'jumpBack', "none", 0.3, true},
{'setAnimation', "none", 'idle', false}, {'goTo', "none", "start", 0, 0, 0.2, true}
} },
onContact = { -- if the attack move and touch multiple ennemies, you can add
-- specific effect when you touch the ennemy.
},
} }

View file

@ -0,0 +1,19 @@
return {
name = "spindash",
cost = 05,
targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true,
choregraphy = {
{"setAnimation", "none", "spindash", false},
{'playSFX', "none", 'spincharge'},
{"wait", "none", 0.5},
{"setAnimation", "none", "spin", false},
{'playSFX', "none", 'spinrelease'},
{"goTo", "none", "target", 0, 0, 0.3, true},
{"sendDamage", "none", 120, 100, false, false},
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'},
{'jumpBack', "none", 0.3, true},
{'goTo', "none", "start", 0, 0, 0.2, true}
}
}

View file

@ -1,27 +0,0 @@
-- 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",
cost = 03,
targetNumber = 1, -- 0 for targeting all ennemies
targetEnnemies = true,
choregraphy = { -- the main attack choregraphy
{"setAnimation", "none", "spinjump", false},
{'playSFX', "none", 'jump'},
{'jumpTo', 'none', "target", 0, 0, 0.5, true},
{"sendDamage", "none", 110, 100, false, true},
{'addGFX', "sentDamage", 'hitGFX', "target", 0, 0, true, false},
{'playSFX', "sentDamage", 'hitconnect'},
{'jumpBack', "none", 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.
},
}