/spacey

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-20 01:09:55 UTC
  • Revision ID: josh@9ix.org-20130520010955-8kzcxxe7sa8pdk8e
don't keep spawning rocks after death.

Show diffs side-by-side

added added

removed removed

147
147
              self.gameStart = love.timer.getTime()
148
148
           end,
149
149
   onUpdate = function(self, dt)
150
 
                 if love.timer.getTime() > self.lastRock + self.rockInterval then
 
150
                 if the.player.active and love.timer.getTime() > self.lastRock + self.rockInterval then
151
151
                    local unseenRock = nil
152
152
                    while not unseenRock do
153
153
                       local rock = Rock:new{
233
233
                 self.console:watch('the.app.width', 'the.app.width')
234
234
                 self.console:watch('the.app.height', 'the.app.height')
235
235
                 self.console:watch('num mirrors', '#the.mirrors.sprites')
 
236
                 self.console:watch('num rocks', '#the.rocks.sprites')
236
237
                 --self.console:watch('drawTook', 'the.drawTook')
237
238
 
238
239
                 -- back off that dark overlay a bit