Skip to content

Instantly share code, notes, and snippets.

@jozanza
Last active November 11, 2019 22:22
#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