/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:49:03 UTC
  • Revision ID: josh@9ix.org-20130514174903-790agtxqfvz8lnzv
player death

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
 
52
61
                     the.app.view:remove(self.rock)
53
62
                     the.app.view:remove(self)
54
63
                     the.rockColliders:remove(self)