Commits

josefnpat committed 7003ad9

removing odd table calls

Comments (0)

Files changed (1)

denom/magiclib/magiclib.lua

 
 function magiclib.draw()
   for i,v in ipairs(bolts) do
-    love.graphics.draw(magiclib.bolt, v["x"]+maplib.tx, v["y"]+maplib.ty)
+    love.graphics.draw(magiclib.bolt, v.x+maplib.tx, v.y+maplib.ty)
   end
 end
 
 function magiclib.update(dt)
   for i,v in ipairs(bolts) do
-    v["x"] = v["x"] + (v["dx"] * dt)
-    v["y"] = v["y"] + (v["dy"] * dt)
+    v.x = v.x + (v.dx * dt)
+    v.y = v.y + (v.dy * dt)
   end
 end