/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-10 21:55:44 UTC
  • Revision ID: josh@9ix.org-20130310215544-iqzp3x2l10h9247f
reorganize code - separate X and Y physics so we can collide in each 
direction separately

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