Titol de finestra i ESC per a eixir
This commit is contained in:
@@ -873,6 +873,7 @@ end
|
||||
-- BUCLE PRINCIPAL
|
||||
-- ============================================================
|
||||
function init()
|
||||
wintitle("© 1985 Guante Blanco — David Radisic")
|
||||
mode(MODO)
|
||||
border(COL_FONDO)
|
||||
color(COL_TEXTO, COL_FONDO)
|
||||
@@ -895,6 +896,7 @@ function init()
|
||||
end
|
||||
|
||||
function update()
|
||||
if btnp(KEY_ESCAPE) then os.exit(0) end
|
||||
if estado == ESTADO_PASE then update_pase()
|
||||
elseif estado == ESTADO_JUEGO then update_juego()
|
||||
elseif estado == ESTADO_ESCAPE then update_escape()
|
||||
|
||||
Reference in New Issue
Block a user