datas: add sonic-boost characters data
This commit is contained in:
parent
8cb038eddf
commit
d867860d2f
2 changed files with 21 additions and 1 deletions
20
sonic-boost.love/datas/subgame/sonic-boost/characters.lua
Normal file
20
sonic-boost.love/datas/subgame/sonic-boost/characters.lua
Normal 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
|
||||||
|
},
|
||||||
|
}
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue