Browse files

added ownership indicator to turrets

  • Loading branch information...
1 parent f1f0ce0 commit 3584cfd0ad49bca6bbeedaf16e56842cc95b03ed @Textmode Textmode committed Aug 28, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 hull/turret.lua
View
9 hull/turret.lua
@@ -36,6 +36,15 @@ function _M:think(dt)
end
+function _M:draw(...)
+ local own = self.owner
+ if own then
+ love.graphics.setColor(0,0,127)
+ love.graphics.line(self.pos_x, self.pos_y, own.pos_x, own.pos_y)
+ ship.draw(self, ...)
+ end
+end
+
function _M:docollision()
end

0 comments on commit 3584cfd

Please sign in to comment.