summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 5368eae..7c5fcbf 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,6 +1,17 @@
-#include <stdio.h>
+#include "raylib.h"
int main(int argc, char *argv[]) {
- printf("hi world!\n");
+ InitWindow(800, 600, "hyperspace (demo)");
+
+ SetTargetFPS(60);
+
+ while (!WindowShouldClose()) {
+ BeginDrawing();
+ ClearBackground(WHITE);
+ DrawText("hi world!", GetScreenWidth() / 2.0 - 16 * 4,
+ GetScreenHeight() / 2.0 - 16, 32, BLACK);
+ EndDrawing();
+ }
+
return 0;
}