Ctrl+K

AtlasHelper

Declaration

public static class Strawberry.Graphics.AtlasHelper

Methods

LoadSprites static

Loads sprites from a texture and a sprite map.

void LoadSprites(IGameContext gameContext, string texturePath, string spriteMap, string textureAssetName, string spriteAssetsPrefix, AssetManager assets = null)

Parameters:

Name Type Description
gameContext Strawberry.Core.IGameContext The current game context
texturePath System.String path to the texture file
spriteMap System.String path to the sprite map file
textureAssetName System.String Texture name in the asset manager
spriteAssetsPrefix System.String The prefix of loaded sprites in the asset manager
assets Strawberry.Core.AssetManager = null The asset manager object, if null the gameContext.Assets will be used.