aboutsummaryrefslogtreecommitdiff
path: root/src/cavegen.h
diff options
context:
space:
mode:
authorjacob janzen <53062115+JacobJanzen@users.noreply.github.com>2024-02-14 15:52:57 -0600
committerGitHub <noreply@github.com>2024-02-14 21:52:57 +0000
commitb57c21da92563eed58867a9a6b02c201006cbc57 (patch)
treeb42a7654223d228c140870ef711b6f8e499de118 /src/cavegen.h
parent7e249ef2644071ca56bdbf7820ca9a66fef23d3c (diff)
Automake (#2)
* gnu autotools build * ignore dist
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_