1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

LÖVE 11.1

This commit is contained in:
Étienne Fildadut 2018-11-02 15:03:40 +01:00
parent 389ebcba8d
commit bdb9e710d9
3 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,7 @@ scene = {
switch = function(scenePath, ...)
local previous = scene.current
scene.current = scene.load(scene.prefix..scenePath)
scene.current.name = scenePath
scene.current.name = scene.current.name or scenePath
if previous then previous:exit() end
scene.current:enter(...)
scene.stack[math.max(#scene.stack, 1)] = scene.current
@ -94,7 +94,7 @@ scene = {
push = function(scenePath, ...)
local previous = scene.current
scene.current = scene.load(scene.prefix..scenePath)
scene.current.name = scenePath
scene.current.name = scene.current.name or scenePath
if previous then previous:suspend() end
scene.current:enter(...)
table.insert(scene.stack, scene.current)