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/bush.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/entities/bush.c (limited to 'src/entities/bush.c') diff --git a/src/entities/bush.c b/src/entities/bush.c new file mode 100644 index 0000000..884ffef --- /dev/null +++ b/src/entities/bush.c @@ -0,0 +1,12 @@ +#include "bush.h" + +void initBush(Entity* entity) +{ + entity->box = entityBoxFromScale(1.0, BUSH_WIDTH, BUSH_HEIGHT); +} + +void updateBush(Entity* entity, Game* game) +{ + DrawBillboard(game->player.camera, game->assets.textures[BUSH_TEXTURE], + entity->position, 1.0, WHITE); +} -- cgit v1.2.3