Add top bar game UI

This commit is contained in:
2023-12-28 09:47:55 +01:00
parent 0d09ffd67d
commit 118f7f9d93
6 changed files with 99 additions and 6 deletions

View File

@@ -331,6 +331,17 @@ typedef enum AnimType {
ANIM_NONE,
} AnimType;
static EntityType getEntityTile(EntityType type) {
switch (type) {
case ENTITY_WORKER: return 27;
case ENTITY_WOOD: return 7424;
case ENTITY_STONE: return 7425;
case ENTITY_GOLD: return 7426;
case ENTITY_POP: return 7427;
default: return -1;
}
}
static bool entityHasAnimation(EntityType entity, AnimType type) {
switch (entity) {
case ENTITY_WORKER: