I'm redoing my animation system for my game. I'm wondering what the best approach for handling direction animations IE (North, East, South, West).
I'm thinking I could have it where each animation id has the 4 associated directions included :
typedef enum {
ANIMATION_PLAYER_IDLE,
ANIMATION_PLAYER_MOVE,
ANIMATION_PLAYER_SHIELD_MOVE,
ANIMATION_PLAYER_PUSH,
ANIMATION_PLAYER_PICKUP,
ANIMATION_PLAYER_USE,
} AnimationID;
Or I go the other route and make animation id only handle one direction
typedef enum {
ANIMATION_PLAYER_IDLE_NORTH,
ANIMATION_PLAYER_IDLE_EAST,
ANIMATION_PLAYER_IDLE_SOUTH,
ANIMATION_PLAYER_IDLE_WEST,
} AnimationID;