/spacey

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

« back to all changes in this revision

Viewing changes to rock.lua

  • Committer: Josh C
  • Date: 2013-05-14 17:49:03 UTC
  • Revision ID: josh@9ix.org-20130514174903-790agtxqfvz8lnzv
player death

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
68
                  end
66
69
               end