/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-05 16:55:40 UTC
  • Revision ID: josh@9ix.org-20130305165540-153ooatvpc6e261e
whitespace cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
                self._sleepTime = 0
381
381
 
382
382
                -- update everyone
383
 
                -- all update events bubble up from child to parent
384
 
                -- (we consider the meta view a little 
 
383
                -- app gets precedence, then meta view, then view
385
384
 
 
385
                if self.onStartFrame then self:onStartFrame(elapsed) end
 
386
                self.meta:startFrame(elapsed)
 
387
                
386
388
                view:startFrame(elapsed)
387
 
                self.meta:startFrame(elapsed)
388
 
                if self.onStartFrame then self:onStartFrame(elapsed) end
389
 
                
390
389
                view:update(elapsed)    
391
390
                self.meta:update(elapsed)
392
391
                if self.onUpdate then self:onUpdate(elapsed) end
402
401
                if inset then love.graphics.translate(self.inset.x, self.inset.y) end
403
402
                self.view:draw()
404
403
                self.meta:draw()
 
404
                if self.onDraw then self:onDraw() end
405
405
                if inset then love.graphics.translate(0, 0) end
406
406
 
407
407
                -- sleep off any unneeded time to keep up at our FPS