Table of Contents

 
LoadSprites
 

Purpose

Loads a bunch of sprite objects from a data file

 

Protoype

void CSpriteMngr::LoadSprites (string str_filename)
 

Parameters

filename the name or location of the data file
 

Description

This function loads in sprite objects from a .dat file created using the Data Generator application. Please see the Data Generator documentation for more information regarding the structure of the .dat file for sprite loading.

NOTE: The extension of the data file does not have to be .dat, that's just the extension used by the Data Generator application.

NOTE: The data file also contains animation data for all sprite objects - there is no LoadAnimations function to load in animation objects seperately

 

Use

CSpriteMngr sprite;
sprite.LoadSprites("sprites.dat");
 

Prev: LoadAnimation