/zoeplat

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

« back to all changes in this revision

Viewing changes to zoetrope/core/app.lua

  • Committer: Josh C
  • Date: 2013-03-09 05:02:20 UTC
  • Revision ID: josh@9ix.org-20130309050220-bd1ybunyhk8fhwyw
reapply jump animation after Y collision.  (there's a frame of no 
jumping no falling that I can't do anything about w/o doing better 
collision handling)

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
        end,
398
398
        
399
399
        draw = function (self)
400
 
drawStart = love.timer.getMicroTime()
401
400
                local inset = self.inset.x ~= 0 or self.inset.y ~= 0
402
401
 
403
402
                if inset then love.graphics.translate(self.inset.x, self.inset.y) end
408
407
                -- sleep off any unneeded time to keep up at our FPS
409
408
 
410
409
                local now = love.timer.getMicroTime()
411
 
the.drawTook = now - drawStart
 
410
 
412
411
                if self._nextFrameTime < now then
413
412
                        self._nextFrameTime = now
414
413
                else