love.graphics.newSpriteBatch

Creates a new SpriteBatch object.

Function

Synopsis

spriteBatch = love.graphics.newSpriteBatch( image, size )

Arguments

Image image
The Image to use for the sprites.
number size
The max number of sprites.

Returns

SpriteBatch spriteBatch
The new SpriteBatch.

See Also