diff options
author | nathan <nathansmith@disroot.org> | 2025-10-07 02:14:00 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-10-07 02:14:00 +0000 |
commit | 19e8c4da3820e3d3e4af10d338f1c03ad377de81 (patch) | |
tree | def0a78d25178504a130e98c003d0c0ef9f083d4 /src/entity.c | |
parent | c1682ff0b346a089d16b4f75732d39c85100e343 (diff) | |
download | FindThings-19e8c4da3820e3d3e4af10d338f1c03ad377de81.tar.gz FindThings-19e8c4da3820e3d3e4af10d338f1c03ad377de81.tar.bz2 FindThings-19e8c4da3820e3d3e4af10d338f1c03ad377de81.zip |
Diffstat (limited to 'src/entity.c')
-rw-r--r-- | src/entity.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c index 5515932..0c0b914 100644 --- a/src/entity.c +++ b/src/entity.c @@ -72,9 +72,25 @@ 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; } |