chore: prepare new character architecture

This commit is contained in:
Kazhnuz 2019-08-04 18:00:01 +02:00
parent 17aba29df7
commit 7e8c4e373e
9 changed files with 66 additions and 71 deletions

View file

@ -1,70 +0,0 @@
return {
name = "Default",
name_full = "Default the Character",
class = "Speedster",
startlevel = 100,
isUnlockedAtStart = true,
base_stats = {
hpmax = 200, --
ppmax = 50, --
attack = 50, --
power = 50, --
defense = 50, --
technic = 50, --
mind = 50, --
speed = 50, --
turns = 3, -- number of attacks by turn (unused)
move = 3, -- how far the character can get in one turn
},
color = {1, 1, 1},
skill_list = {
--{attack_name, level},
{"spinattack", 2},
{"spinjump", 3},
{"spindash", 8},
{"hommingattack", 11},
{"spinattack", 15},
{"sonicflare", 18},
{"bluetornado", 22},
{"spindash", 26},
{"soniccracker", 30},
{"hommingattack", 35},
{"bluetornado", 40},
{"boost", 62},
{"lightspeedattack", 70},
},
flags = {
canGoSuper = true,
},
assets = {
charset = {"", 1},
lifeicon = 1,
spriteset = "sonic",
},
inventory = {
haveShoes = true,
haveMechs = false,
haveGlove = true,
haveHammer= false,
accessories_number = 3,
chao_number = 1,
},
boost_stats = {
spd = 5,
jmp = 3,
jumpaction = "doublejump",
jumpaction_power = 2,
action = "spinattack",
action_power = 1,
canBreakCraft = false,
}
}

View file

@ -0,0 +1,17 @@
local actions = {}
actions.aerial = {}
function actions.aerial.start(n, actor)
end
function actions.aerial.update(dt, actor)
end
function actions.aerial.onGround(actor)
end
return actions

View file

@ -0,0 +1,13 @@
return {
name = "Sonic",
fullname = "Sonic the Hedgehog",
class = "speedster",
speed = 5,
jump = 3,
startlevel = 1,
isUnlockedAtStart = true,
canGoSuper = true,
canBreakCraft = false,
}

View file

@ -0,0 +1,8 @@
return {
haveShoes = true,
haveMechs = false,
haveGlove = true,
haveHammer= false,
accessories_number = 3,
chao_number = 1,
}

View file

@ -0,0 +1,16 @@
return {
--{attack_name, level},
{"spinattack", 2},
{"spinjump", 3},
{"spindash", 8},
{"hommingattack", 11},
{"spinattack", 15},
{"sonicflare", 18},
{"bluetornado", 22},
{"spindash", 26},
{"soniccracker", 30},
{"hommingattack", 35},
{"bluetornado", 40},
{"boost", 62},
{"lightspeedattack", 70},
}

View file

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View file

@ -0,0 +1,11 @@
return {
hpmax = 200, --
ppmax = 50, --
attack = 50, --
power = 50, --
defense = 50, --
technic = 50, -- How much items & wisps will be powerfull for this character.
mind = 50, -- Magic defense.
luck = 50, -- Critical hits and stuff like that.
}

View file

@ -3,7 +3,7 @@ return {
{"shadow", "assets/sprites/shadow.png"} {"shadow", "assets/sprites/shadow.png"}
}, },
["sprites"] = { ["sprites"] = {
{"sonic", "assets/sprites/characters/sonic"}, {"sonic", "datas/gamedata/characters/sonic/sprites"},
{"ring", "assets/sprites/items/ring"} {"ring", "assets/sprites/items/ring"}
}, },
["imagefonts"] = { ["imagefonts"] = {