Titol de finestra i ESC per a eixir
This commit is contained in:
@@ -607,6 +607,7 @@ end
|
|||||||
-- BUCLE PRINCIPAL
|
-- BUCLE PRINCIPAL
|
||||||
-- ============================================================
|
-- ============================================================
|
||||||
function init()
|
function init()
|
||||||
|
wintitle("© 1984 Rebotes — Alexander Martin")
|
||||||
mode(MODO)
|
mode(MODO)
|
||||||
border(COL_FONDO)
|
border(COL_FONDO)
|
||||||
color(COL_TEXTO, COL_FONDO)
|
color(COL_TEXTO, COL_FONDO)
|
||||||
@@ -619,6 +620,7 @@ function init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function update()
|
function update()
|
||||||
|
if btnp(KEY_ESCAPE) then os.exit(0) end
|
||||||
if estado == ESTADO_TITULO then update_titulo()
|
if estado == ESTADO_TITULO then update_titulo()
|
||||||
elseif estado == ESTADO_INSTRUC then update_instruc()
|
elseif estado == ESTADO_INSTRUC then update_instruc()
|
||||||
elseif estado == ESTADO_JUEGO then update_juego()
|
elseif estado == ESTADO_JUEGO then update_juego()
|
||||||
|
|||||||
Reference in New Issue
Block a user