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:
2026-03-17 18:10:54 +01:00
parent 336deaafa9
commit 1d2e72db47
5 changed files with 32 additions and 14 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
gota_gif_col = 7
gota_gif_row = 0
gota={}
function gota.new(_hab,_x,_y,_freq)
@@ -5,7 +15,12 @@ function gota.new(_hab,_x,_y,_freq)
end
function gota:draw_normal()
draw.surf(112,0,8,8,self.x,self.y)
-- draw.surf(112,0,8,8,self.x,self.y)
local x = gota_gif_col*cw
local y = gota_gif_row*ch
local cw= 8*o2aX
local ch= 8*o2aX
draw.surf(x,y,cw,ch,self.x*o2aX,self.y*o2aX)
end
function gota:update_normal()
@@ -46,14 +61,14 @@ function gota:hit()
end
function gota:draw_splash()
draw.circf(self.cx+self.dx,self.y,2,16)
draw.circf(self.cx+self.dx,self.y,1,11)
draw.circf(self.cx-self.dx,self.y,2,16)
draw.circf(self.cx-self.dx,self.y,1,11)
draw.circf(self.cx-(self.dx/2),self.y-4,2,16)
draw.circf(self.cx-(self.dx/2),self.y-4,1,11)
draw.circf(self.cx+(self.dx/2),self.y-4,2,16)
draw.circf(self.cx+(self.dx/2),self.y-4,1,11)
draw.circf( (self.cx+self.dx)*o2aX, self.y*o2aX, 2*o2aX, 16)
draw.circf( (self.cx+self.dx)*o2aX, self.y*o2aX, 1*o2aX, 11)
draw.circf( (self.cx-self.dx)*o2aX, self.y*o2aX, 2*o2aX, 16)
draw.circf( (self.cx-self.dx)*o2aX, self.y*o2aX, 1*o2aX, 11)
draw.circf( (self.cx-(self.dx/2))*o2aX, (self.y-4)*o2aX, 2*o2aX, 16)
draw.circf( (self.cx-(self.dx/2))*o2aX, (self.y-4)*o2aX, 1*o2aX, 11)
draw.circf( (self.cx+(self.dx/2))*o2aX, (self.y-4)*o2aX, 2*o2aX, 16)
draw.circf( (self.cx+(self.dx/2))*o2aX, (self.y-4)*o2aX, 1*o2aX, 11)
end
function gota:update_splash()