From 601961a245a48112029341437912fe13b54dac0b Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 6 Jul 2025 05:13:16 -0600 Subject: rreeee --- src/entity.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/entity.h (limited to 'src/entity.h') diff --git a/src/entity.h b/src/entity.h new file mode 100644 index 0000000..0c431ea --- /dev/null +++ b/src/entity.h @@ -0,0 +1,25 @@ +#include "utils.h" + +// Pretty much any object in the game. + +#ifndef ENTITY_H +#define ENTITY_H + +typedef int8_t EntityId; + +enum { + ENTITY_NONE = -1, + OLD_MINT, + STICKY_NICKEL +}; + +typedef struct { + EntityId id; + Vector3 position; + BoundingBox box; +} Entity; + +Entity createEntity(EntityId id, Vector3 position); +void updateEntity(Entity* entity, Game* game); + +#endif -- cgit v1.2.3