diff options
Diffstat (limited to 'src/entities/bush.c')
| -rw-r--r-- | src/entities/bush.c | 12 |
1 files changed, 12 insertions, 0 deletions
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); +} |
