/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:13:43 UTC
  • Revision ID: josh@9ix.org-20130514171343-s251e971hc92mzb0
shoot things!

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
              end,
50
50
   onCollide = function(self, other)
51
51
                  if other:instanceOf(Bullet) then
52
 
                     local b = Boom:new {
53
 
                        x = self.x,
54
 
                        y = self.y,
55
 
                        velocity = {
56
 
                           rotation = util.signOf(self.rock.rotation) * 5
57
 
                        }
58
 
                     }
59
 
                     the.app.view:add(b)
60
 
 
61
52
                     the.app.view:remove(self.rock)
62
53
                     the.app.view:remove(self)
63
54
                     the.rockColliders:remove(self)