Switch animation indexing to enum, toggle anim on spacebar

This commit is contained in:
2016-07-17 17:16:09 +10:00
parent ca6790cb1c
commit 62c5fe0629
2 changed files with 89 additions and 36 deletions
+8 -1
View File
@@ -25,6 +25,14 @@ enum EntityType
entitytype_count,
};
enum EntityAnimId
{
entityanimid_idle,
entityanimid_walk,
entityanimid_wave,
entityanimid_count,
};
typedef struct EntityAnim
{
v4 *rect;
@@ -59,7 +67,6 @@ typedef struct Entity
// TODO(doyle): String based access
EntityAnim anim[16];
i32 freeAnimIndex;
i32 currAnimIndex;
EntityStats *stats;