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/ron.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/entities/ron.c (limited to 'src/entities/ron.c') diff --git a/src/entities/ron.c b/src/entities/ron.c new file mode 100644 index 0000000..bd32e6a --- /dev/null +++ b/src/entities/ron.c @@ -0,0 +1,16 @@ +#include "ron.h" + +void initRon(Entity* entity) +{ + entity->box = (BoundingBox){ + .min = (Vector3){-SHOPKEEPER_WIDTH, -SHOPKEEPER_HEIGHT, + -SHOPKEEPER_THICKNESS}, + .max = (Vector3){SHOPKEEPER_WIDTH, SHOPKEEPER_HEIGHT, + SHOPKEEPER_THICKNESS} + }; +} + +void updateRon(Entity* entity, Game* game) +{ + DrawModel(game->assets.models[RON_MODEL], entity->position, 1.0, WHITE); +} -- cgit v1.2.3