From d867860d2fa1d248d390da50cb1ffc1ebb364559 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Feb 2019 08:38:40 +0100 Subject: [PATCH] datas: add sonic-boost characters data --- .../datas/subgame/sonic-boost/characters.lua | 20 +++++++++++++++++++ sonic-boost.love/game/subgame/sonic-boost.lua | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 sonic-boost.love/datas/subgame/sonic-boost/characters.lua diff --git a/sonic-boost.love/datas/subgame/sonic-boost/characters.lua b/sonic-boost.love/datas/subgame/sonic-boost/characters.lua new file mode 100644 index 0000000..80ac91e --- /dev/null +++ b/sonic-boost.love/datas/subgame/sonic-boost/characters.lua @@ -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 + }, +} diff --git a/sonic-boost.love/game/subgame/sonic-boost.lua b/sonic-boost.love/game/subgame/sonic-boost.lua index cb181c3..a9998c8 100644 --- a/sonic-boost.love/game/subgame/sonic-boost.lua +++ b/sonic-boost.love/game/subgame/sonic-boost.lua @@ -4,7 +4,7 @@ function SonicBoost:new(controller) self.controller = controller self.datas = {} - self.datas.characters = require "datas.characters" + self.datas.characters = require "datas.subgame.sonic-boost.characters" end function SonicBoost:getCharacterData(name)