aboutsummaryrefslogtreecommitdiffstats
path: root/src/entity.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-06 11:13:16 +0000
committernathan <nathansmith@disroot.org>2025-07-06 11:13:16 +0000
commit601961a245a48112029341437912fe13b54dac0b (patch)
treea3cf0a664b02bbecb3c5e146c1b2eabcec191623 /src/entity.c
parent942924f120d104cf0d6f080497c286d98bd14e11 (diff)
downloadFindThings-601961a245a48112029341437912fe13b54dac0b.tar.gz
FindThings-601961a245a48112029341437912fe13b54dac0b.tar.bz2
FindThings-601961a245a48112029341437912fe13b54dac0b.zip
rreeee
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c29
1 files changed, 29 insertions, 0 deletions
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;
+ }
+}