aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/samanthasSpot.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-10-25 23:18:08 +0000
committernathan <nathansmith@disroot.org>2025-10-25 23:18:08 +0000
commit32e795acb0c60a320b8449a3b7b6ee5fb5779c12 (patch)
tree62ea2eb3ccac8adba7fcdada36a63f25541913f5 /src/entities/samanthasSpot.c
parent233d6994bea031c0d22a77f5a8b7427a2b566e12 (diff)
downloadFindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.tar.gz
FindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.tar.bz2
FindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.zip
Switching to better entity system
Diffstat (limited to 'src/entities/samanthasSpot.c')
-rw-r--r--src/entities/samanthasSpot.c19
1 files changed, 19 insertions, 0 deletions
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);
+}