Rebase on Radiance #71

Merged
kazhnuz merged 20 commits from wip/radiance-rebase into master 2022-08-12 10:37:35 +02:00
Showing only changes of commit f3d175266b - Show all commits

View file

@ -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()