SpriteBatch:add
Adds a sprite to the batch. Sprites are drawn in the order they are added.
id = SpriteBatch:add( x, y, r, sx, sy, ox, oy, kx, ky )
x number The position to draw the object (x-axis).
y number The position to draw the object (y-axis).
r (0) number Orientation (radians).
sx (1) number Scale factor (x-axis).
sy (sx) number Scale factor (y-axis).
ox (0) number Origin offset (x-axis).
oy (0) number Origin offset (y-axis).
kx (0) number Shear factor (x-axis).
ky (0) number Shear factor (y-axis).
id number An identifier for the added sprite.
id = SpriteBatch:add( quad, x, y, r, sx, sy, ox, oy, kx, ky )
quad Quad The Quad to add.
x number The position to draw the object (x-axis).
y number The position to draw the object (y-axis).
r (0) number Orientation (radians).
sx (1) number Scale factor (x-axis).
sy (sx) number Scale factor (y-axis).
ox (0) number Origin offset (x-axis).
oy (0) number Origin offset (y-axis).
kx (0) number Shear factor (x-axis).
ky (0) number Shear factor (y-axis).
id number An identifier for the added sprite.