Skip to content

Instantly share code, notes, and snippets.

@jozanza

jozanza/hello.c

Last active Nov 11, 2019
Embed
What would you like to do?
#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