/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-16 02:41:58 UTC
  • Revision ID: josh@9ix.org-20130516024158-d5jtkfvd2qw709xo
record high scores

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
require 'zoetrope'
5
5
vector = require 'vector'
6
 
--inspect = require 'inspect'
7
6
 
8
7
require 'group'
9
8
 
176
175
                 end
177
176
 
178
177
                 the.bullets:collide(the.rockColliders)
179
 
 
180
 
                 -- for _, mirror in ipairs(the.mirrors.sprites) do
181
 
                 --    if not mirror.of then
182
 
                 --       print('mirror:' .. inspect(mirror))
183
 
                 --       error('mirror OF NOTHING')
184
 
                 --    end
185
 
                 -- end
186
178
              end,
187
179
   onEndFrame = function(self)
188
180
                   if the.player.active then
232
224
                 self.console:watch('the.player.y', 'the.player.y')
233
225
                 self.console:watch('the.app.width', 'the.app.width')
234
226
                 self.console:watch('the.app.height', 'the.app.height')
235
 
                 self.console:watch('num mirrors', '#the.mirrors.sprites')
236
227
                 --self.console:watch('drawTook', 'the.drawTook')
237
228
 
238
229
                 -- back off that dark overlay a bit