/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/sprite.lua

  • Committer: Josh C
  • Date: 2013-03-09 06:03:56 UTC
  • Revision ID: josh@9ix.org-20130309060356-qvi2yd0odhfr3e6t
try to track X collisions.  break out Sprite's physics in prep for 
overriding them completely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
                if vel.rotation ~= 0 then self.rotation = self.rotation + vel.rotation * elapsed end
428
428
        end,
429
429
        update = function (self, elapsed)
 
430
                    self:doPhysics(elapsed)
 
431
 
430
432
                    if self.onUpdate then self:onUpdate(elapsed) end
431
433
        end,
432
434