summaryrefslogtreecommitdiff
path: root/src/world.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h18
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