From 601961a245a48112029341437912fe13b54dac0b Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 6 Jul 2025 05:13:16 -0600 Subject: rreeee --- src/entity.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/entity.c (limited to 'src/entity.c') diff --git a/src/entity.c b/src/entity.c new file mode 100644 index 0000000..ac3606b --- /dev/null +++ b/src/entity.c @@ -0,0 +1,29 @@ +#include "entity.h" +#include "game.h" + +// TODO: Entity creation system +Entity createEntity(EntityId id, Vector3 position) +{ + Entity entity; + entity.id = id; + entity.position = position; + + return entity; +} + +void updateEntity(Entity* entity, Game* game) +{ + switch (entity->id) + { + case OLD_MINT: + DrawBillboard(game->player.camera, game->assets.textures[MINT_TEXTURE], + entity->position, 1.0, WHITE); + break; + case STICKY_NICKEL: + DrawBillboard(game->player.camera, game->assets.textures[NICK_TEXTURE], + entity->position, 1.0, WHITE); + break; + default: + break; + } +} -- cgit v1.2.3