So I'm currently working on a platformer. The main guy has a bunch of different moves and each move uses a different sprite sheet for animation. Same deal with the enemies...
I have a player class and an enemy class which are children of a creature class.
Does it make sense to have an AtlasSpriteManager and action for each for these moves?
E.g. in the init function:
spriteManager1 = [[AtlasSpriteManager spriteManagerWithFile:@"walk_sheet.png"] retain];
spriteManager2 = [[AtlasSpriteManager spriteManagerWithFile:@"attack_sheet.png"] retain];
etc.
// Create AtlasAnimation object for each move here using for-loop
actionWalk = [[Animate actionWithAnimation:animationWalk] retain];
actionAttack = [[Animate actionWithAnimation:animationAttack] retain];
(actionWalk and actionAttack are type id and are class variables)
Is this the best way to do this? In the end, my player class will probably have 6 ASMs and actions and each enemy instance have 2-3 ASMs and actions... What do you guys suggest?