DX: numero de versio a la pantalla de titol amb color definible per skin
This commit is contained in:
@@ -9,6 +9,13 @@
|
|||||||
-- mateix fitxer en versions anteriors. Si elimines una clau, el joc petara
|
-- mateix fitxer en versions anteriors. Si elimines una clau, el joc petara
|
||||||
-- al usar-la — millor que prendre un valor obscur per defecte.
|
-- al usar-la — millor que prendre un valor obscur per defecte.
|
||||||
|
|
||||||
|
-- ====================================================================
|
||||||
|
-- INFO
|
||||||
|
-- ====================================================================
|
||||||
|
-- Versio del joc. Apareix centrada a la part baixa de la pantalla de
|
||||||
|
-- titol. Format lliure (mostra el que pose ací).
|
||||||
|
version = "v2.0.0"
|
||||||
|
|
||||||
-- ====================================================================
|
-- ====================================================================
|
||||||
-- ASPECTE GRAFIC
|
-- ASPECTE GRAFIC
|
||||||
-- ====================================================================
|
-- ====================================================================
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ musica = nil
|
|||||||
music_on = nil
|
music_on = nil
|
||||||
VIDES_INI = nil
|
VIDES_INI = nil
|
||||||
LEVEL_INI = nil
|
LEVEL_INI = nil
|
||||||
|
version = nil -- string que es mostra centrat baix a la pantalla de titol
|
||||||
|
|
||||||
-- Codis CP437 dels sprites del joc original (de TIPOS.PAS).
|
-- Codis CP437 dels sprites del joc original (de TIPOS.PAS).
|
||||||
-- Els usem com a IDs logics de tipus de cel·la (i coincideixen amb el
|
-- Els usem com a IDs logics de tipus de cel·la (i coincideixen amb el
|
||||||
@@ -651,6 +652,10 @@ function update_title()
|
|||||||
local t = textos.title_press_play
|
local t = textos.title_press_play
|
||||||
print(t, flr((40 - strlen(t)) / 2), 23)
|
print(t, flr((40 - strlen(t)) / 2), 23)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Versio del joc, centrada a la part baixa (es desvaneix amb el fade)
|
||||||
|
color(colors.version, colors.bg)
|
||||||
|
print(version, flr((40 - strlen(version)) / 2), 28)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- ----- GAME OVER -----
|
-- ----- GAME OVER -----
|
||||||
|
|||||||
+2
-1
@@ -37,6 +37,7 @@ 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"
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
|
version = COLOR_LIGHT_BLUE, -- text de versio a la pantalla de titol
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -38,6 +38,7 @@ 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"
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
|
version = COLOR_LIGHT_BLUE, -- text de versio a la pantalla de titol
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -41,6 +41,7 @@ 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"
|
gameover_box = COLOR_BLUE, -- fons del cuadre del text "FI DE JOC"
|
||||||
|
version = COLOR_LIGHT_BLUE, -- text de versio a la pantalla de titol
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user