aboutsummaryrefslogtreecommitdiff
path: root/src/cavegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cavegen.h')
-rw-r--r--src/cavegen.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cavegen.h b/src/cavegen.h
new file mode 100644
index 0000000..b6ed1e4
--- /dev/null
+++ b/src/cavegen.h
@@ -0,0 +1,26 @@
+#ifndef CAVEGEN_H_
+#define CAVEGEN_H_
+
+#include "common.h"
+
+#define HEIGHT 100
+#define WIDTH 180
+
+enum tile_type {
+ WALL,
+ GROUND,
+ UP_STAIR,
+ DOWN_STAIR,
+};
+
+struct map {
+ enum tile_type *map;
+ struct point entry_point;
+
+ int width;
+ int height;
+};
+
+void create_cave(struct map *map);
+
+#endif // CAVEGEN_H_