Moguda la comprovació de pintar fora de la funció draw de cada actor

This commit is contained in:
2026-03-29 17:02:05 +02:00
parent 2c93003fe2
commit 7f4f29ecc2
12 changed files with 44 additions and 53 deletions

View File

@@ -25,10 +25,8 @@ function bol.draw()
local x = bol_gif_col*tw
local y = toff+bol_gif_row*th
if viewp:inside(bol.x, bol.y, bol.w, bol.h) then
local scr_x, scr_y = viewp:screen_coords( bol.x, bol.y )
draw.surf(x,y,bol.w,bol.h,scr_x,scr_y,bol.w,bol.h)
end
local scr_x, scr_y = viewp:screen_coords( bol.x, bol.y )
draw.surf(x,y,bol.w,bol.h,scr_x,scr_y,bol.w,bol.h)
end
function bol.update()