Moguda la comprovació de pintar fora de la funció draw de cada actor
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user