/spacey

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

« 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

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)