From 19e8c4da3820e3d3e4af10d338f1c03ad377de81 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 6 Oct 2025 20:14:00 -0600 Subject: Existing --- src/entity.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/entity.c') diff --git a/src/entity.c b/src/entity.c index 5515932..0c0b914 100644 --- a/src/entity.c +++ b/src/entity.c @@ -72,8 +72,24 @@ Entity createEntity(EntityId id, Vector3 position) case TRASH: entity.box = entityBoxFromScale(TRASH_SCALE, 202.0, 122.0); break; + case MEDICAL_TRASH: entity.box = entityBoxFromScale(MEDICAL_TRASH_SCALE, 200.0, 132.0); + break; + // TODO: do the thing + case JOHN: + entity.box = (BoundingBox){ + .min = (Vector3){-1.0, -1.0, -1.0}, + .max = (Vector3){1.0, 1.0, 1.0} + }; + + break; + case RON: + entity.box = (BoundingBox){ + .min = (Vector3){-1.0, -1.0, -1.0}, + .max = (Vector3){1.0, 1.0, 1.0} + }; + break; default: break; @@ -171,6 +187,12 @@ void updateEntity(Entity* entity, Game* game) game->assets.textures[MEDICAL_TRASH_TEXTURE], entity->position, MEDICAL_TRASH_SCALE, WHITE); break; + case JOHN: + DrawModel(game->assets.models[JOHN_MODEL], entity->position, 1.0, WHITE); + break; + case RON: + DrawModel(game->assets.models[RON_MODEL], entity->position, 1.0, WHITE); + break; default: break; } -- cgit v1.2.3