DX: color propi (gameover_box) per al cuadre del FI DE JOC
This commit is contained in:
+2
-2
@@ -678,14 +678,14 @@ function update_gameover()
|
|||||||
-- i una columna a cada costat. Es pinta primer per a que el text
|
-- i una columna a cada costat. Es pinta primer per a que el text
|
||||||
-- quede a sobre.
|
-- quede a sobre.
|
||||||
local box_w = total_chars + 2
|
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)
|
local blank = string.rep(" ", box_w)
|
||||||
for dy = -1, 1 do print(blank, text_x - 1, text_y + dy) end
|
for dy = -1, 1 do print(blank, text_x - 1, text_y + dy) end
|
||||||
|
|
||||||
-- Lletres del typewriter
|
-- Lletres del typewriter
|
||||||
local nletres = flr(t / temps.typewriter_step_frames) + 1
|
local nletres = flr(t / temps.typewriter_step_frames) + 1
|
||||||
if nletres > total_chars then nletres = total_chars end
|
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)
|
print(substr(g, 0, nletres), text_x, text_y)
|
||||||
|
|
||||||
-- Tic nomes en el frame en que apareix una lletra nova, i nomes
|
-- Tic nomes en el frame en que apareix una lletra nova, i nomes
|
||||||
|
|||||||
@@ -37,5 +37,6 @@ return {
|
|||||||
malo_carrega = COLOR_LIGHT_MAGENTA,
|
malo_carrega = COLOR_LIGHT_MAGENTA,
|
||||||
malo_atrapat = COLOR_BROWN,
|
malo_atrapat = COLOR_BROWN,
|
||||||
score_flash = COLOR_YELLOW,
|
score_flash = COLOR_YELLOW,
|
||||||
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,5 +38,6 @@ return {
|
|||||||
malo_carrega = COLOR_LIGHT_MAGENTA,
|
malo_carrega = COLOR_LIGHT_MAGENTA,
|
||||||
malo_atrapat = COLOR_BROWN,
|
malo_atrapat = COLOR_BROWN,
|
||||||
score_flash = COLOR_YELLOW,
|
score_flash = COLOR_YELLOW,
|
||||||
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,5 +41,6 @@ return {
|
|||||||
malo_carrega = COLOR_LIGHT_MAGENTA,
|
malo_carrega = COLOR_LIGHT_MAGENTA,
|
||||||
malo_atrapat = COLOR_BROWN,
|
malo_atrapat = COLOR_BROWN,
|
||||||
score_flash = COLOR_YELLOW,
|
score_flash = COLOR_YELLOW,
|
||||||
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user