mirror of
http://git.davidovski.xyz/dungeon-generator
synced 2024-08-15 00:43:46 +00:00
Initial commit
This commit is contained in:
commit
78ed4873aa
3 changed files with 42 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal file
|
@ -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}
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Procedural Generated Dungeon
|
||||||
|
|
||||||
|
|
22
src/main.c
Normal file
22
src/main.c
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue