diff options
author | DrNuget <drnuget@outlook.com> | 2025-03-03 18:38:18 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-03-03 18:38:18 +0200 |
commit | 23dac85d2f600f0073e77bf83f4a544f3a087416 (patch) | |
tree | 76fbaa200140036473c3b9bacace389c14bdcd25 /src/world.h |
let the madness begin
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h new file mode 100644 index 0000000..88bdfdb --- /dev/null +++ b/src/world.h @@ -0,0 +1,18 @@ +#ifndef WORLD_H +#define WORLD_H +#include "player.h" + +#define WORLD_WIDTH 10 +#define WORLD_HEIGHT 10 + +typedef struct world { + int map[WORLD_HEIGHT][WORLD_WIDTH][WORLD_WIDTH]; +} World; + +void drawWorld(World *world); + +void handleCollision(World *world, Player *player); + +void handleGravity(World *world, Player *player); + +#endif |