From 7faa1cbde913ad8c56bc43bc01512799d4cf6d02 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 29 Jul 2025 02:17:10 -0600 Subject: Working hard or hardly working --- src/entity.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/entity.c') diff --git a/src/entity.c b/src/entity.c index 6d1aace..8225e76 100644 --- a/src/entity.c +++ b/src/entity.c @@ -32,6 +32,13 @@ Entity createEntity(EntityId id, Vector3 position) break; case FLOWER: entity.box = entityBoxFromScale(FLOWER_SCALE, 32.0, 54.0); + break; + case POND: + entity.box = (BoundingBox){ + .min = (Vector3){-POND_SIZE, -POND_HEIGHT, -POND_SIZE}, + .max = (Vector3){POND_SIZE, POND_HEIGHT, POND_SIZE} + }; + break; default: break; @@ -66,6 +73,9 @@ void updateEntity(Entity* entity, Game* game) DrawBillboard(game->player.camera, game->assets.textures[FLOWER_TEXTURE], entity->position, FLOWER_SCALE, WHITE); break; + case POND: + DrawBoundingBox(entity->box, YELLOW); + break; default: break; } -- cgit v1.2.3