/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 00:15:01 UTC
  • Revision ID: josh@9ix.org-20130514001501-z14e702ncp21s0yr
try to not spawn rocks where you can see them.  not working if screen 
crosses game boundaries.

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()
88
 
 
89
86
              the.bg = Tile:new{
90
87
                 image = 'data/stars3.png',
91
88
                 -- 1366x768 * 3
140
137
 
141
138
                    self.lastRock = love.timer.getTime()
142
139
                 end
143
 
 
144
 
                 the.bullets:collide(the.rockColliders)
145
140
              end,
146
141
   draw = function (self, x, y)
147
142
             View.draw(self, x, y)