diff options
Diffstat (limited to 'src/entities/flower.c')
| -rw-r--r-- | src/entities/flower.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/entities/flower.c b/src/entities/flower.c new file mode 100644 index 0000000..00f27fc --- /dev/null +++ b/src/entities/flower.c @@ -0,0 +1,12 @@ +#include "flower.h" + +void initFlower(Entity* entity) +{ + entity->box = entityBoxFromScale(1.0, FLOWER_WIDTH, FLOWER_HEIGHT); +} + +void updateFlower(Entity* entity, Game* game) +{ + DrawBillboard(game->player.camera, game->assets.textures[FLOWER_TEXTURE], + entity->position, 1.0, WHITE); +} |
