Jailgames logo

This commit is contained in:
2026-03-28 02:40:08 +01:00
parent 40f22f78da
commit 639d2e98ad
5 changed files with 327 additions and 33 deletions

View File

@@ -1,10 +1,15 @@
arcade_config = require("arcade_config")
require "fps"
require "fade"
require "audio"
require "intro"
require "switches"
require "mapa"
require "map"
local arcade_config = require("arcade_config")
require "logo"
require "intro"
require "game"
require "switches"
-- require "scenes"
function load_tilemap( sf_mapa )
local mapa_tw, mapa_th = surf.size(sf_mapa)
@@ -46,6 +51,8 @@ function mini.init()
sf_mapa=surf.new(mapa_room_cols*mapa_rooms_per_piso,mapa_room_rows*mapa_pisos)
load_tilemap( sf_mapa )
fade.init()
font_sf=font.load("X2_font.fnt")
textsf=surf.new(arcade_config.org_resolucion.width,arcade_config.org_resolucion.height)
@@ -84,8 +91,9 @@ function mini.init()
btnCycle2 = tonumber(config.key("btncycle2")) or pad.LEFTSHOULDER
btnPause = tonumber(config.key("btnpause")) or pad.START
game_init()
-- game_init()
-- intro_init()
logo_init()
-- final_init()
end
@@ -121,7 +129,7 @@ function arc_text(str, x, y, col)
surf.source(curr_surf_src)
end
function arc_textB(str, x, y, col)
function arc_textB(str, x, y, col, colB)
local ox, oy = view.origin()
local curr_surf_tgt = surf.target()
local curr_surf_src = surf.source()
@@ -129,17 +137,18 @@ function arc_textB(str, x, y, col)
local sh = arcade_config.org_resolucion.height
local dw = arcade_config.resolucion.width
local dh = arcade_config.resolucion.height
colB = colB or 16
surf.target(textsf)
view.origin(0,0)
surf.cls(0)
draw.text(str,0,0,16)
draw.text(str,1,0,16)
draw.text(str,2,0,16)
draw.text(str,0,1,16)
draw.text(str,2,1,16)
draw.text(str,0,2,16)
draw.text(str,1,2,16)
draw.text(str,2,2,16)
draw.text(str,0,0,colB)
draw.text(str,1,0,colB)
draw.text(str,2,0,colB)
draw.text(str,0,1,colB)
draw.text(str,2,1,colB)
draw.text(str,0,2,colB)
draw.text(str,1,2,colB)
draw.text(str,2,2,colB)
draw.text(str,1,1,col)
-- print("arc_B "..str)
@@ -148,4 +157,36 @@ function arc_textB(str, x, y, col)
view.origin(ox,oy)
draw.surf(0,0,sw,sh,x,y,dw,dh)
surf.source(curr_surf_src)
end
function arc_textB2(str, x, y, col, colB)
local ox, oy = view.origin()
local curr_surf_tgt = surf.target()
local curr_surf_src = surf.source()
local sw = arcade_config.org_resolucion.width
local sh = arcade_config.org_resolucion.height
local dw = arcade_config.resolucion.width
local dh = arcade_config.resolucion.height
colB = colB or 16
surf.target(textsf)
view.origin(0,0)
surf.cls(0)
draw.text(str,0,0,colB)
draw.text(str,1,0,colB)
draw.text(str,2,0,colB)
draw.text(str,0,1,colB)
draw.text(str,2,1,colB)
draw.text(str,0,2,colB)
draw.text(str,1,2,colB)
draw.text(str,2,2,colB)
draw.text(str,1,1,col)
-- print("arc_B "..str)
surf.source(textsf)
surf.target(curr_surf_tgt)
view.origin(ox,oy)
-- draw.surf(0,0,sw,sh,x,y,dw,dh)
draw.surf(0,0)
surf.source(curr_surf_src)
end