From 32e795acb0c60a320b8449a3b7b6ee5fb5779c12 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 25 Oct 2025 17:18:08 -0600 Subject: Switching to better entity system --- src/entities/samanthasSpot.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/entities/samanthasSpot.c (limited to 'src/entities/samanthasSpot.c') diff --git a/src/entities/samanthasSpot.c b/src/entities/samanthasSpot.c new file mode 100644 index 0000000..0205e46 --- /dev/null +++ b/src/entities/samanthasSpot.c @@ -0,0 +1,19 @@ +#include "samanthasSpot.h" + +void initSamanthasSpot(Entity* entity) +{ + entity->box = (BoundingBox){ + .min = (Vector3){-SAMANTHAS_SPOT_SIZE, -SAMANTHAS_SPOT_HEIGHT, + -SAMANTHAS_SPOT_SIZE}, + .max = (Vector3){SAMANTHAS_SPOT_SIZE, SAMANTHAS_SPOT_HEIGHT, + SAMANTHAS_SPOT_SIZE}, + }; +} + +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); +} -- cgit v1.2.3