From 0ed3bb4569ded185237c6d530285382e6c2b6200 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Fri, 13 Mar 2026 13:08:45 +0300 Subject: Initial Comit --- 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..cbde27a --- /dev/null +++ b/src/entity.h @@ -0,0 +1,25 @@ +#ifndef ENTITY_H_ +#define ENTITY_H_ + +#include +#define + +enum entity_type { + Player_Entity +}; + +#define ENTITY_ACTIVE 1 +#define ENTITY_PHYSICS_ENABLED (1 << 1) + +struct entity { + enum entity_type type; + uint32_t entity_flags flags + + Vector2 position; //The position of the entity(roughly the center) + Rectangle body; +}; + +void update_entity(struct entity* entity, float dt); +void draw_entity(const struct entity* entity); + +#endif -- cgit v1.2.3