From 49a8700400a6593ac98c8ffce1937c2631c59647 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 4 Feb 2019 08:47:07 +0100 Subject: [PATCH] scenes/boost: inputs are in core Compared to the old Boost engine, core and game have been separated, so make sure that input are read in core --- .../scenes/subgame/sonic-boost/actors/character.lua | 2 +- .../scenes/subgame/sonic-boost/controller/characters.lua | 4 ++-- .../scenes/subgame/sonic-boost/controller/init.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua b/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua index 9205603..f80d218 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/actors/character.lua @@ -85,7 +85,7 @@ function Character:update(dt) local dx, dy, dz = 0, 0, 0 -- On commence par récupérer les inputs fait sur le pad virtuel, qui est géré - -- dans game.input.keys. On le garde dans une variable qui sera utilisée dans + -- dans core.input.keys. On le garde dans une variable qui sera utilisée dans -- tout l'objet joueur self.groundTerrain, self.groundBellow = self:getTerrain() diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua b/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua index b07164c..be1fd36 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/controller/characters.lua @@ -49,7 +49,7 @@ end function Dummy:getKeys() - return game.input.fakekeys + return core.input.fakekeys end function Dummy:update(dt) @@ -100,7 +100,7 @@ function Player:new(manager, playerid, character, rail) end function Player:getKeys() - return game.input.keys + return core.input.keys end function Player:wrapActor() diff --git a/sonic-boost.love/scenes/subgame/sonic-boost/controller/init.lua b/sonic-boost.love/scenes/subgame/sonic-boost/controller/init.lua index ffca6b7..8a15e2a 100644 --- a/sonic-boost.love/scenes/subgame/sonic-boost/controller/init.lua +++ b/sonic-boost.love/scenes/subgame/sonic-boost/controller/init.lua @@ -133,7 +133,7 @@ function Controller:update(dt) --self.pausemenu:update(dt) end - if game.input.keys["start"].isPressed then + if core.input.keys["start"].isPressed then self.pause = (self.pause == false) end