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')