From f3d175266b513a0671573e443922582a5a7cc197 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 12 Aug 2022 10:36:24 +0200 Subject: [PATCH] wip: basic fix for plateform The real fix will be done when exemples will be reworked from scratch --- examples/scenes/gameplay/plateform/init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/scenes/gameplay/plateform/init.lua b/examples/scenes/gameplay/plateform/init.lua index c149a1a..e62d01a 100644 --- a/examples/scenes/gameplay/plateform/init.lua +++ b/examples/scenes/gameplay/plateform/init.lua @@ -36,24 +36,24 @@ function Plateformer:new() World(self, folder .. ".actors", "datas/maps/plateformer/platformer.lua") - Pause(self) - self.menusystem:deactivate() - self.menusystem:lockWorldWhenActive(true) - self.menusystem:lockAssetsWhenActive(true) + --Pause(self) + --self.menusystem:deactivate() + --self.menusystem:lockWorldWhenActive(true) + --self.menusystem:lockAssetsWhenActive(true) self.world:loadMap() end function Plateformer:restart() - self.menusystem:deactivate() + --self.menusystem:deactivate() collectgarbage() self.world:reset() end function Plateformer:update(dt) - if (self.menusystem.isActive == true) and self.sources[1].keys["start"].isPressed then - self.menusystem:deactivate() - end + --if (self.menusystem.isActive == true) and self.sources[1].keys["start"].isPressed then + --self.menusystem:deactivate() + --end end function Plateformer:draw()