/traderous

To get this branch, use:
bzr branch /bzr/traderous

« back to all changes in this revision

Viewing changes to bullet.lua

  • Committer: Josh C
  • Date: 2013-05-18 00:09:56 UTC
  • Revision ID: josh@9ix.org-20130518000956-s9717aensfsq1b3c
fix double-removing sprites (and subsequent zombie mirror bullets).  
also lots of debug stuff.

Show diffs side-by-side

added added

removed removed

22
22
   onUpdate = function(self, dt)
23
23
                 if love.timer.getTime() - self.createdAt > 0.7 then
24
24
                    -- TODO: reuse these (see factory idea above)
 
25
                    the.bullets:remove(self)
25
26
                    self:die()
26
 
                    the.bullets:remove(self)
27
27
                 end
28
28
              end
29
29
}
 
 
'\\ No newline at end of file'