diff options
| author | nathan <nathansmith@disroot.org> | 2025-10-25 23:18:08 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-10-25 23:18:08 +0000 |
| commit | 32e795acb0c60a320b8449a3b7b6ee5fb5779c12 (patch) | |
| tree | 62ea2eb3ccac8adba7fcdada36a63f25541913f5 /src/entities/flower.c | |
| parent | 233d6994bea031c0d22a77f5a8b7427a2b566e12 (diff) | |
| download | FindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.tar.gz FindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.tar.bz2 FindThings-32e795acb0c60a320b8449a3b7b6ee5fb5779c12.zip | |
Switching to better entity system
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); +} |
