/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 22:11:35 UTC
  • Revision ID: josh@9ix.org-20130305221135-wrvf3q8vzc6xjdiy
some basic collision (and workarounds)

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
                self._sleepTime = 0
381
381
 
382
382
                -- update everyone
383
 
                -- app gets precedence, then meta view, then view
 
383
                -- all update events bubble up from child to parent
 
384
                -- (we consider the meta view a little 
384
385
 
 
386
                view:startFrame(elapsed)
 
387
                self.meta:startFrame(elapsed)
385
388
                if self.onStartFrame then self:onStartFrame(elapsed) end
386
 
                self.meta:startFrame(elapsed)
387
389
                
388
 
                view:startFrame(elapsed)
389
390
                view:update(elapsed)    
390
391
                self.meta:update(elapsed)
391
392
                if self.onUpdate then self:onUpdate(elapsed) end
401
402
                if inset then love.graphics.translate(self.inset.x, self.inset.y) end
402
403
                self.view:draw()
403
404
                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