diff options
| author | Joel Stålnacke <joel@saker.fi> | 2025-07-26 21:09:26 +0300 |
|---|---|---|
| committer | Joel Stålnacke <joel@saker.fi> | 2025-07-26 21:09:26 +0300 |
| commit | 63506e59366acddf4a9e017ad8aebeadcf58c164 (patch) | |
| tree | 2fa106661b85497fc1d63b7743a78e523ab48fba /lib/world.h | |
| parent | 53f68bb7b0dce309723675c4b97f726a469031c0 (diff) | |
Diffstat (limited to 'lib/world.h')
| -rw-r--r-- | lib/world.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/world.h b/lib/world.h deleted file mode 100644 index 40c3fef..0000000 --- a/lib/world.h +++ /dev/null @@ -1,31 +0,0 @@ -#define WORLD_MAX_ENTITIES 5000 - -enum { - ENTITY_NONE, - ENTITY_BALL -}; - -struct entity_ball { - vec2 pos; - vec2 vel; -}; - -union entity_union { - struct entity_ball ball; -}; - -struct entity { - int kind; - union entity_union e; -}; - -struct world; - -struct world *dp_world_create(); -void dp_world_free(struct world *); - -int dp_world_create_entity(struct world *, int kind); -struct entity *dp_world_find_entity(struct world *, int entity_id); -int dp_world_remove_entity(struct world *, int entity_id); - -int dp_world_tick(struct world *, double delta); |
