DX: color propi (gameover_box) per al cuadre del FI DE JOC

This commit is contained in:
2026-05-15 22:04:24 +02:00
parent b1fc60cdd9
commit 2ceda2b809
4 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -678,14 +678,14 @@ function update_gameover()
-- i una columna a cada costat. Es pinta primer per a que el text
-- quede a sobre.
local box_w = total_chars + 2
color(colors.hud_bg, colors.hud_bg)
color(colors.gameover_box, colors.gameover_box)
local blank = string.rep(" ", box_w)
for dy = -1, 1 do print(blank, text_x - 1, text_y + dy) end
-- Lletres del typewriter
local nletres = flr(t / temps.typewriter_step_frames) + 1
if nletres > total_chars then nletres = total_chars end
color(colors.title, colors.hud_bg)
color(colors.title, colors.gameover_box)
print(substr(g, 0, nletres), text_x, text_y)
-- Tic nomes en el frame en que apareix una lletra nova, i nomes
+1
View File
@@ -37,5 +37,6 @@ return {
malo_carrega = COLOR_LIGHT_MAGENTA,
malo_atrapat = COLOR_BROWN,
score_flash = COLOR_YELLOW,
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
},
}
+1
View File
@@ -38,5 +38,6 @@ return {
malo_carrega = COLOR_LIGHT_MAGENTA,
malo_atrapat = COLOR_BROWN,
score_flash = COLOR_YELLOW,
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
},
}
+1
View File
@@ -41,5 +41,6 @@ return {
malo_carrega = COLOR_LIGHT_MAGENTA,
malo_atrapat = COLOR_BROWN,
score_flash = COLOR_YELLOW,
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
},
}