From 91b1c45da05c892a04b6a1daa99b1de89fa1f363 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 29 Dec 2025 05:42:08 -0700 Subject: working on building roofs --- src/entities/johnsStore.c | 3 +-- src/entities/samanthasSpot.c | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src/entities') diff --git a/src/entities/johnsStore.c b/src/entities/johnsStore.c index e3f4908..41217ed 100644 --- a/src/entities/johnsStore.c +++ b/src/entities/johnsStore.c @@ -27,8 +27,7 @@ void updateJohnsStore(Entity* entity, Game* game) building->model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = game->assets.textures[JOHNS_SHOP_TEXTURE]; DrawModel(building->model, entity->position, 1.0, WHITE); - - DrawBoundingBox(entity->box, RED); + drawBuildingRoof(building, entity->position, BROWN); } void closeJohnsStore(Entity* entity) diff --git a/src/entities/samanthasSpot.c b/src/entities/samanthasSpot.c index 0205e46..2022f37 100644 --- a/src/entities/samanthasSpot.c +++ b/src/entities/samanthasSpot.c @@ -13,7 +13,9 @@ void initSamanthasSpot(Entity* entity) void updateSamanthasSpot(Entity* entity, Game* game) { DrawModel(game->world.samanthasSpotFloor, - Vector3Add(entity->position, - (Vector3){0.0, -SAMANTHAS_SPOT_HEIGHT + 0.01, 0.0}), - 1.0, WHITE); + Vector3Add( + entity->position, + (Vector3){0.0, -SAMANTHAS_SPOT_HEIGHT + TOUCHING_OFFSET, 0.0}), + 1.0, + WHITE); } -- cgit v1.2.3