aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
authornathan <nathan@disroot.org>2025-07-29 08:17:10 +0000
committernathan <nathan@disroot.org>2025-07-29 08:17:10 +0000
commit7faa1cbde913ad8c56bc43bc01512799d4cf6d02 (patch)
tree1aa235efd08cc5add125123450d859f3874a4ff7 /src/entity.c
parent6bcf165f3af3da713953b9b3b80b4f101f7a0f7a (diff)
downloadFindThings-7faa1cbde913ad8c56bc43bc01512799d4cf6d02.tar.gz
FindThings-7faa1cbde913ad8c56bc43bc01512799d4cf6d02.tar.bz2
FindThings-7faa1cbde913ad8c56bc43bc01512799d4cf6d02.zip
Working hard or hardly working
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 6d1aace..8225e76 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -33,6 +33,13 @@ Entity createEntity(EntityId id, Vector3 position)
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;
}