Last active
November 11, 2019 22:22
-
-
Save jozanza/34708939893947cc672e9cd0b4e9bc10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <raylib.h> | |
int main(void) { | |
char* greeting = "Hello, World!"; | |
int x = 0; | |
int y = 0; | |
int fontSize = 72; | |
InitWindow(800, 600, greeting); | |
SetTargetFPS(60); | |
while (!WindowShouldClose()) { | |
BeginDrawing(); | |
ClearBackground(RAYWHITE); | |
DrawText(greeting, x, y, fontSize, LIGHTGRAY); | |
EndDrawing(); | |
} | |
CloseWindow(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment