/zoeplat

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

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-04-16 00:27:10 UTC
  • Revision ID: josh@9ix.org-20130416002710-4soqj70ln7hdrzdb
testing audio

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
require 'pepperprof'
8
8
require 'getopt_alt'
9
9
 
 
10
require 'sprite'
 
11
require 'animation'
 
12
require 'player'
 
13
require 'balloon'
 
14
 
10
15
util = {
11
16
   dim = function(dir)
12
17
      if dir == 'x' then
54
59
   record = true,
55
60
   onRun = function (self)
56
61
              self.view = GameView:new()
57
 
              self.console:watch('onGround', 'the.player.onGround')
58
 
              self.console:watch('onWall', 'the.player.onWall')
59
 
              self.console:watch('updateTook', 'the.updateTook')
60
 
              self.console:watch('drawTook', 'the.drawTook')
61
 
              self.console:watch('recorder state', 'the.recorder.state')
 
62
              if DEBUG then
 
63
                 self.console:watch('onGround', 'the.player.onGround')
 
64
                 self.console:watch('onWall', 'the.player.onWall')
 
65
                 self.console:watch('updateTook', 'the.updateTook')
 
66
                 self.console:watch('drawTook', 'the.drawTook')
 
67
                 self.console:watch('recorder state', 'the.recorder.state')
 
68
              end
62
69
 
63
70
              --the.profiler = newProfiler('time', 2000)
64
71
              --the.profiler = newProfiler()