forked from JailDoctor/cacaus
Ja escriu el text on toca en les escenes gracies al JailDoc. Gota ja es mostra com toca. Modificats uns quants sprites i tiles mes. Ja en queden pocs
This commit is contained in:
@@ -132,6 +132,7 @@ function arc_text(str, x, y, col)
|
||||
end
|
||||
|
||||
function arc_textB(str, x, y, col)
|
||||
local ox, oy = view.origin()
|
||||
local curr_surf_tgt = surf.target()
|
||||
local curr_surf_src = surf.source()
|
||||
local sw = arcade_config.org_resolucion.width
|
||||
@@ -139,6 +140,7 @@ function arc_textB(str, x, y, col)
|
||||
local dw = arcade_config.resolucion.width
|
||||
local dh = arcade_config.resolucion.height
|
||||
surf.target(textsf)
|
||||
view.origin(0,0)
|
||||
surf.cls(0)
|
||||
draw.text(str,0,0,16)
|
||||
draw.text(str,1,0,16)
|
||||
@@ -153,6 +155,7 @@ function arc_textB(str, x, y, 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)
|
||||
surf.source(curr_surf_src)
|
||||
end
|
||||
Reference in New Issue
Block a user