Sets up a spritebatch with portrait sprites. This method clears all the sprites in the given spritebatch per every call.
Sets up a spritebatch with portrait sprites. This method clears all the sprites in the given spritebatch per every call.
1 SpriteBatch spritebatch
the spritebatch to fill with sprites. Will use the default portrait spritebatch if none is given.
2 bool isGUI
switch for GUI-like behavior.
3 number baseX
the base X coordinate.
4 number baseY
the base Y coordinate.
5 number scale
the sprite scale.
6 table listOfSprites
the list where to allocate sprite IDs to. Will use the one on the portrait object if none is provided.
7 number depthOffset
the depth offset.
1 table
the sprite list.