/spacey

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-05-18 00:09:56 UTC
  • Revision ID: josh@9ix.org-20130518000956-s9717aensfsq1b3c
fix double-removing sprites (and subsequent zombie mirror bullets).  
also lots of debug stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
              self.gameStart = love.timer.getTime()
148
148
           end,
149
149
   onUpdate = function(self, dt)
150
 
                 if the.player.active and love.timer.getTime() > self.lastRock + self.rockInterval then
 
150
                 if 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')
237
236
                 --self.console:watch('drawTook', 'the.drawTook')
238
237
 
239
238
                 -- back off that dark overlay a bit