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/pond.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/entities/pond.c (limited to 'src/entities/pond.c') diff --git a/src/entities/pond.c b/src/entities/pond.c new file mode 100644 index 0000000..a1cda5d --- /dev/null +++ b/src/entities/pond.c @@ -0,0 +1,15 @@ +#include "pond.h" + +void initPond(Entity* entity) +{ + entity->box = (BoundingBox){ + .min = (Vector3){-POND_SIZE, -POND_HEIGHT, -POND_SIZE}, + .max = (Vector3){POND_SIZE, POND_HEIGHT, POND_SIZE} + }; +} + +void updatePond(Entity* entity, Game* game) +{ + DrawPlane(Vector3Add(entity->position, (Vector3){0.0, POND_HEIGHT, 0.0}), + (Vector2){POND_SIZE * 2.5, POND_SIZE * 2.5}, BLUE); +} -- cgit v1.2.3