summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@sendula.com>2021-07-27 10:28:29 +0100
committerdavidovski <david@sendula.com>2021-07-27 10:28:29 +0100
commit78ed4873aa88ac0b0f489773617cdea5e55212c3 (patch)
treeee8bbd943634bc04b59d273ef4f17fb788fa384a
Initial commit
-rw-r--r--Makefile17
-rw-r--r--README.md3
-rw-r--r--src/main.c22
3 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f508fc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+PROG=dungeon-generator
+CC=gcc
+FLAGS=-lm -lraylib
+
+.DEFAULT_GOAL := build
+
+install: ${PROG}
+ cp ${PROG} ~/.local/bin/
+
+build: src/main.c
+ ${CC} src/main.c -o ${PROG} ${FLAGS}
+
+build-osx: ${PROG}
+ clang -framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL libraylib.a ${PROG}.c -o ${PROG}
+
+clean: ${PROG}
+ rm ${PROG}
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..38d9435
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Procedural Generated Dungeon
+
+
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..73ec76c
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,22 @@
+#include "raylib.h"
+
+const int screenWidth = 800;
+const int screenHeight = 450;
+
+int main(void) {
+ InitWindow(screenWidth, screenHeight, "dungeon generation");
+ SetTargetFPS(60);
+
+ while (!WindowShouldClose()) {
+
+ BeginDrawing();
+ ClearBackground(GRAY);
+
+ EndDrawing();
+
+ }
+
+ CloseWindow();
+
+ return 0;
+}