Ja se veuen be el gorro, el gps, el peu, el cacau, la fireball i el imp que eixia 'flipat'

This commit is contained in:
2026-03-15 23:39:21 +01:00
parent 5a2b418e5b
commit 319862df30
6 changed files with 52 additions and 7 deletions

View File

@@ -1,3 +1,13 @@
local arcade_config = require("arcade_config")
o2aX = arcade_config.org2arc_escala
cxr = arcade_config.character_per_row-1
cxr2 = arcade_config.character_per_row_base2
cw = arcade_config.character_width
ch = arcade_config.character_height
-- posició en el gif
gps_gif_col = 7
gps_gif_row = 3
gps={hab=5,x=48,y=24,bb={x=0,y=0,w=8,h=8}}
function gps.init()
@@ -10,7 +20,10 @@ function gps.init()
end
function gps.draw()
draw.surf(112,48,16,16,gps.x,gps.y,16,16)
-- draw.surf(112,48,16,16,gps.x,gps.y,16,16)
local x = gps_gif_col*cw
local y = gps_gif_row*ch
draw.surf(x,y,cw,ch,gps.x*o2aX,gps.y*o2aX,cw,ch)
end
function gps.update()