/traderous

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-14 16:39:54 UTC
  • Revision ID: josh@9ix.org-20130514163954-tpi9djio3pm6vswf
prepare a collision box for the rocks

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
              --    end
84
84
              -- end
85
85
 
86
 
              the.rockColliders = Group:new()
87
 
              the.bullets = Group:new()
 
86
              the.rockColliders = {}
 
87
              the.bullets = {}
88
88
 
89
89
              the.bg = Tile:new{
90
90
                 image = 'data/stars3.png',
140
140
 
141
141
                    self.lastRock = love.timer.getTime()
142
142
                 end
143
 
 
144
 
                 the.bullets:collide(the.rockColliders)
145
143
              end,
146
144
   draw = function (self, x, y)
147
145
             View.draw(self, x, y)