Method CreateAnimatedTilemap
CreateAnimatedTilemap(AsepriteFile, GraphicsDevice, ProcessorOptions?)
Creates a new AnimatedTilemap from the all frames in the provided aseprite file.
public static AnimatedTilemap CreateAnimatedTilemap(this AsepriteFile aseFile, GraphicsDevice device, ProcessorOptions? options = null)
Parameters
aseFileAsepriteFileThe aseprite file instance.
deviceGraphicsDeviceThe graphics device used to create graphical resources.
optionsProcessorOptionsThe options to use when processing the animated tilemap.
Returns
- AnimatedTilemap
the AnimatedTilemap created by this method.
Exceptions
- ArgumentNullException
Thrown if
aseFileis null.-or-
throw if
deviceis null.