solved(not solved) animation bug

This commit is contained in:
bizcochito 2021-03-20 13:12:03 +01:00
parent a734175e1a
commit 325651a23a
No known key found for this signature in database
GPG Key ID: 4A514B3A7A673EB6
2 changed files with 4 additions and 3 deletions

View File

@ -121,9 +121,9 @@ function love.draw()
draw_entity(entity)
end
-- draw every unit's troops
for _, unit in pairs(current_level.units) do for _, entity in pairs(unit.troops) do
for _, u in pairs(current_level.units) do for _, entity in pairs(u.troops) do
draw_entity(entity)
end end
end break end --Stop loop at first loop, we need to find better way but this works for now sob
-- draw selection
if selecting_troops == true then

View File

@ -34,6 +34,7 @@ for i = 1, 8, 1 do for j = 1, 5, 1 do
end end
table.insert(units,nu)
--[[local nu = Unit:newUnit("Implings",player.id,portrait.impling,statTable.implings)
local xx, yy, zz = 3, 0, 3
for i = 1, 8, 1 do for j = 1, 5, 1 do