aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
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;
}