Moguda la comprovació de pintar fora de la funció draw de cada actor
This commit is contained in:
@@ -210,8 +210,7 @@ function update_game()
|
||||
render_map(sf_mapa, tiles, vp_x, vp_y)
|
||||
|
||||
for key,actor in pairs(actors) do
|
||||
-- if actor.hab==hab then
|
||||
if true then
|
||||
if viewp:inside(actor.x, actor.y, actor.w, actor.h) then
|
||||
actor:draw()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user