/zoeplat

To get this branch, use:
bzr branch /bzr/zoeplat

« back to all changes in this revision

Viewing changes to sprite.lua

  • Committer: Josh C
  • Date: 2013-04-23 16:15:50 UTC
  • Revision ID: josh@9ix.org-20130423161550-2769i8ut566706p3
don't require underscore

Show diffs side-by-side

added added

removed removed

50
50
      assert(drag, 'active sprite has no drag property')
51
51
      assert(minVel, 'active sprite has no minVelocity property')
52
52
      assert(maxVel, 'active sprite has no maxVelocity property')
53
 
      assert(__.include({'x','y','rotation'}, dir), 'direction should be x, y, or rotation')
 
53
      assert(dir=='x' or dir=='y' or dir=='rotation', 'direction should be x, y, or rotation')
54
54
   end
55
55
 
56
56
   vel.x = vel.x or 0