Titol de finestra i ESC per a eixir
This commit is contained in:
@@ -631,6 +631,7 @@ end
|
|||||||
-- BUCLE PRINCIPAL
|
-- BUCLE PRINCIPAL
|
||||||
-- ====================================================================
|
-- ====================================================================
|
||||||
function init()
|
function init()
|
||||||
|
wintitle("© 1999 Pepe el pintor — JailDesigner")
|
||||||
mode(1)
|
mode(1)
|
||||||
border(COLOR_BLUE)
|
border(COLOR_BLUE)
|
||||||
definir_glifs()
|
definir_glifs()
|
||||||
@@ -642,6 +643,7 @@ function init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function update()
|
function update()
|
||||||
|
if btnp(KEY_ESCAPE) then os.exit(0) end
|
||||||
estat_t = estat_t + 1
|
estat_t = estat_t + 1
|
||||||
if estat_joc == ESTAT_AVIS then update_avis()
|
if estat_joc == ESTAT_AVIS then update_avis()
|
||||||
elseif estat_joc == ESTAT_PLAYING then update_playing()
|
elseif estat_joc == ESTAT_PLAYING then update_playing()
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ manager.servicis = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
|
wintitle("© 2026 Pepe el pintor — JailDesigner")
|
||||||
mode(1)
|
mode(1)
|
||||||
border(COLOR_BLACK)
|
border(COLOR_BLACK)
|
||||||
color(COLOR_WHITE, COLOR_BLACK)
|
color(COLOR_WHITE, COLOR_BLACK)
|
||||||
@@ -42,6 +43,7 @@ function init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function update()
|
function update()
|
||||||
|
if btnp(KEY_ESCAPE) then os.exit(0) end
|
||||||
local dt = timing.tick()
|
local dt = timing.tick()
|
||||||
input.tick()
|
input.tick()
|
||||||
manager.update(dt)
|
manager.update(dt)
|
||||||
|
|||||||
Reference in New Issue
Block a user