main.c 564 B

12345678910111213141516171819202122232425262728
  1. #include <raylib.h>
  2. #include <string.h>
  3. int main(void)
  4. {
  5. const int screenWidth = 800;
  6. const int screenHeight = 600;
  7. InitWindow(screenWidth, screenHeight,
  8. "Vinora Engine");
  9. SetTargetFPS(60);
  10. char *text = "Hello, World!";
  11. while (!WindowShouldClose())
  12. {
  13. BeginDrawing();
  14. ClearBackground(RAYWHITE);
  15. DrawText(text, screenWidth/2 - (strlen(text)*40/2)/2,
  16. screenHeight/2 - 40, 40, GRAY);
  17. EndDrawing();
  18. }
  19. CloseWindow();
  20. return 0;
  21. }