/zoeplat

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

« back to all changes in this revision

Viewing changes to player.lua

  • Committer: Josh C
  • Date: 2013-04-11 00:15:03 UTC
  • Revision ID: josh@9ix.org-20130411001503-u3hxmtsjcw9i3lo7
actually make separate player/sprite work.  clean up some code that 
assumes debug mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
                     end
73
73
 
74
74
                     if the.keys:justPressed('up') and
75
 
                      (self.onGround or the.console.visible or
 
75
                      (self.onGround or 
 
76
                       (DEBUG and the.console.visible) or
76
77
                       (love.timer.getTime() - self.leftWallAt < .1) ) then
77
78
                        self.velocity.y = -400
78
79
                        self.jumping = true