Skip to content

Instantly share code, notes, and snippets.

@jozanza
Last active November 11, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozanza/34708939893947cc672e9cd0b4e9bc10 to your computer and use it in GitHub Desktop.
Save jozanza/34708939893947cc672e9cd0b4e9bc10 to your computer and use it in GitHub Desktop.
#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