aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index de5f7f3..2ad7754 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -30,6 +30,9 @@ Entity createEntity(EntityId id, Vector3 position)
case BUSH:
entity.box = entityBoxFromScale(BUSH_SCALE, 174.0, 124.0);
break;
+ case FLOWER:
+ entity.box = entityBoxFromScale(FLOWER_SCALE, 32.0, 54.0);
+ break;
default:
break;
}
@@ -59,6 +62,10 @@ void updateEntity(Entity* entity, Game* game)
DrawBillboard(game->player.camera, game->assets.textures[BUSH_TEXTURE],
entity->position, BUSH_SCALE, WHITE);
break;
+ case FLOWER:
+ DrawBillboard(game->player.camera, game->assets.textures[FLOWER_TEXTURE],
+ entity->position, FLOWER_SCALE, WHITE);
+ break;
default:
break;
}