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