aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/medicalTrash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/medicalTrash.c')
-rw-r--r--src/entities/medicalTrash.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/entities/medicalTrash.c b/src/entities/medicalTrash.c
new file mode 100644
index 0000000..4c4f9f3
--- /dev/null
+++ b/src/entities/medicalTrash.c
@@ -0,0 +1,14 @@
+#include "medicalTrash.h"
+
+void initMedicalTrash(Entity* entity)
+{
+ entity->box = entityBoxFromScale(MEDICAL_TRASH_SCALE, MEDICAL_TRASH_WIDTH,
+ MEDICAL_TRASH_HEIGHT);
+}
+
+void updateMedicalTrash(Entity* entity, Game* game)
+{
+ DrawBillboard(game->player.camera,
+ game->assets.textures[MEDICAL_TRASH_TEXTURE],
+ entity->position, MEDICAL_TRASH_SCALE, WHITE);
+}