aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 329aed1..3c17f5e 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -69,6 +69,12 @@ Entity createEntity(EntityId id, Vector3 position)
entity.box = entityBoxFromScale(TRASHCAN_SCALE, TRASHCAN_WIDTH,
TRASHCAN_HEIGHT);
break;
+ 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;
default:
break;
}
@@ -150,6 +156,14 @@ void updateEntity(Entity* entity, Game* game)
case TRASHCAN:
updateTrashcan(entity, game);
break;
+ case TRASH:
+ DrawBillboard(game->player.camera, game->assets.textures[TRASH_TEXTURE],
+ entity->position, TRASH_SCALE, WHITE);
+ break;
+ case MEDICAL_TRASH:
+ DrawBillboard(game->player.camera, game->assets.textures[MEDICAL_TRASH],
+ entity->position, MEDICAL_TRASH_SCALE, WHITE);
+ break;
default:
break;
}