c++ - Removing a Specific Instance from a CSpriteList -
so i'm trying code platformer in c++ end of year project first year student.
i have group of enemies stored within cspritelist.
i want able remove 1 specific example list upon specific action, such on hittest csprite.
i have no idea how i've been searching internet week, reddit, irc's, google, no 1 has been able me here.
i decided try sign on here , see if can myself here.
the engine i'm using can found here.
my list initialised as:
cspritelist theenemies;
i'm working within following loop create destruction:
for each (csprite *esprite in theenemies) { if (esprite->hittest(&rexplode)) { // destruction code here } }
Comments
Post a Comment