/traderous

To get this branch, use:
bzr branch http://9ix.org/bzr/traderous

« back to all changes in this revision

Viewing changes to rock.lua

  • Committer: Josh C
  • Date: 2013-05-14 17:32:46 UTC
  • Revision ID: josh@9ix.org-20130514173246-rjq8assj79qbd6fn
explosions

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
                 rock = self
14
14
              }
15
15
 
 
16
              the.app.view:add(self.collider)
16
17
              the.rockColliders:add(self.collider)
17
18
           end,
18
19
   onUpdate = function(self, dt)
57
58
                     }
58
59
                     the.app.view:add(b)
59
60
 
60
 
                     the.rocks:remove(self.rock)
 
61
                     the.app.view:remove(self.rock)
 
62
                     the.app.view:remove(self)
61
63
                     the.rockColliders:remove(self)
62
64
                     self.rock = nil -- break circular reference
63
65
 
 
66
                     the.app.view:remove(other)
64
67
                     the.bullets:remove(other)
65
 
                     other:die()
66
68
                  end
67
69
               end
68
70
}
 
 
b'\\ No newline at end of file'