From bd7e9a9e5aef22ba525212a40027355835c7b316 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 18 May 2026 13:35:21 +0200 Subject: [PATCH] Titol de finestra i ESC per a eixir --- pepe_pintor.lua | 2 ++ pepe_pintor_dx/main.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pepe_pintor.lua b/pepe_pintor.lua index 09d4b0b..e6a1508 100644 --- a/pepe_pintor.lua +++ b/pepe_pintor.lua @@ -631,6 +631,7 @@ end -- BUCLE PRINCIPAL -- ==================================================================== function init() + wintitle("© 1999 Pepe el pintor — JailDesigner") mode(1) border(COLOR_BLUE) definir_glifs() @@ -642,6 +643,7 @@ function init() end function update() + if btnp(KEY_ESCAPE) then os.exit(0) end estat_t = estat_t + 1 if estat_joc == ESTAT_AVIS then update_avis() elseif estat_joc == ESTAT_PLAYING then update_playing() diff --git a/pepe_pintor_dx/main.lua b/pepe_pintor_dx/main.lua index 0003661..6aeba0a 100644 --- a/pepe_pintor_dx/main.lua +++ b/pepe_pintor_dx/main.lua @@ -29,6 +29,7 @@ manager.servicis = { } function init() + wintitle("© 2026 Pepe el pintor — JailDesigner") mode(1) border(COLOR_BLACK) color(COLOR_WHITE, COLOR_BLACK) @@ -42,6 +43,7 @@ function init() end function update() + if btnp(KEY_ESCAPE) then os.exit(0) end local dt = timing.tick() input.tick() manager.update(dt)