Table of Contents

 
AddSprite
 

Purpose

Adds a new sprite object to the given layer for rendering

 

Protoype

void CTileMngr::AddSprite (string str_sprite, int i_layer)
 

Parameters

sprite the ID of the sprite object to add
layer the number of the layer to add it to
 

Description

This function adds a sprite object to the given map layer, which allows the map to render the sprite.

 

Use

CTileMngr tile_mngr;
tile_mngr.AddSprite("my_sprite", 2);
 

Prev: AddLayer
Next: Assign