Titol de finestra i ESC per a eixir

This commit is contained in:
2026-05-18 13:52:13 +02:00
parent bc73969465
commit 76eab4caaa
+2
View File
@@ -873,6 +873,7 @@ end
-- BUCLE PRINCIPAL -- BUCLE PRINCIPAL
-- ============================================================ -- ============================================================
function init() function init()
wintitle("© 1985 Guante Blanco — David Radisic")
mode(MODO) mode(MODO)
border(COL_FONDO) border(COL_FONDO)
color(COL_TEXTO, COL_FONDO) color(COL_TEXTO, COL_FONDO)
@@ -895,6 +896,7 @@ function init()
end end
function update() function update()
if btnp(KEY_ESCAPE) then os.exit(0) end
if estado == ESTADO_PASE then update_pase() if estado == ESTADO_PASE then update_pase()
elseif estado == ESTADO_JUEGO then update_juego() elseif estado == ESTADO_JUEGO then update_juego()
elseif estado == ESTADO_ESCAPE then update_escape() elseif estado == ESTADO_ESCAPE then update_escape()