From 23dac85d2f600f0073e77bf83f4a544f3a087416 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Mon, 3 Mar 2025 18:38:18 +0200 Subject: let the madness begin --- src/world.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/world.h (limited to 'src/world.h') 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 -- cgit v1.2.3