/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-11 01:33:32 UTC
  • Revision ID: josh@9ix.org-20130411013332-7bf1zydct2v4rbyk
zoetrope 1.4 (and revert my sprite changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
STRICT = true
2
 
DEBUG = true
 
2
DEBUG = false
3
3
 
4
4
require 'zoetrope'
5
5
__ = require 'underscore'
7
7
require 'pepperprof'
8
8
require 'getopt_alt'
9
9
 
 
10
require 'sprite'
 
11
require 'player'
 
12
 
10
13
util = {
11
14
   dim = function(dir)
12
15
      if dir == 'x' then
54
57
   record = true,
55
58
   onRun = function (self)
56
59
              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')
 
60
              if DEBUG then
 
61
                 self.console:watch('onGround', 'the.player.onGround')
 
62
                 self.console:watch('onWall', 'the.player.onWall')
 
63
                 self.console:watch('updateTook', 'the.updateTook')
 
64
                 self.console:watch('drawTook', 'the.drawTook')
 
65
                 self.console:watch('recorder state', 'the.recorder.state')
 
66
              end
62
67
 
63
68
              --the.profiler = newProfiler('time', 2000)
64
69
              --the.profiler = newProfiler()