solved(not solved) animation bug
This commit is contained in:
parent
a734175e1a
commit
325651a23a
4
main.lua
4
main.lua
|
@ -121,9 +121,9 @@ function love.draw()
|
||||||
draw_entity(entity)
|
draw_entity(entity)
|
||||||
end
|
end
|
||||||
-- draw every unit's troops
|
-- 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)
|
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
|
-- draw selection
|
||||||
if selecting_troops == true then
|
if selecting_troops == true then
|
||||||
|
|
|
@ -34,6 +34,7 @@ for i = 1, 8, 1 do for j = 1, 5, 1 do
|
||||||
end end
|
end end
|
||||||
table.insert(units,nu)
|
table.insert(units,nu)
|
||||||
|
|
||||||
|
|
||||||
--[[local nu = Unit:newUnit("Implings",player.id,portrait.impling,statTable.implings)
|
--[[local nu = Unit:newUnit("Implings",player.id,portrait.impling,statTable.implings)
|
||||||
local xx, yy, zz = 3, 0, 3
|
local xx, yy, zz = 3, 0, 3
|
||||||
for i = 1, 8, 1 do for j = 1, 5, 1 do
|
for i = 1, 8, 1 do for j = 1, 5, 1 do
|
||||||
|
|
Loading…
Reference in New Issue