diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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; } |
