aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-27 10:46:59 +0000
committernathan <nathansmith@disroot.org>2025-07-27 10:46:59 +0000
commit9b3bbf4ef7c26c1267e8ea99024d9d1acd7f1376 (patch)
tree0035940891d844047f693ab6137803f543025acb /src/entity.c
parent49a0487a9c02a4bcd9da965400e393820ba6372f (diff)
downloadFindThings-9b3bbf4ef7c26c1267e8ea99024d9d1acd7f1376.tar.gz
FindThings-9b3bbf4ef7c26c1267e8ea99024d9d1acd7f1376.tar.bz2
FindThings-9b3bbf4ef7c26c1267e8ea99024d9d1acd7f1376.zip
Flower
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;
}