datas: add sonic-boost characters data

This commit is contained in:
Kazhnuz 2019-02-04 08:38:40 +01:00
parent 8cb038eddf
commit d867860d2f
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,20 @@
return {
["sonic"] = {
name = "Sonic",
fullname = "Sonic the Hedgehog", -- Nom qu'on affiche quand on veut le complet
stats = {
spd = 5,
jmp = 3,
jumpaction = "doublejump",
jumpaction_power = 2,
action = "spinattack",
action_power = 1,
breakcraft = false, -- brise les objets fragile rien qu'au contact
},
assets = {
lifeicon = 1,
spriteset = "sonic",
},
unlocked = true
},
}

View file

@ -4,7 +4,7 @@ function SonicBoost:new(controller)
self.controller = controller self.controller = controller
self.datas = {} self.datas = {}
self.datas.characters = require "datas.characters" self.datas.characters = require "datas.subgame.sonic-boost.characters"
end end
function SonicBoost:getCharacterData(name) function SonicBoost:getCharacterData(name)