26 lines
No EOL
466 B
C
26 lines
No EOL
466 B
C
#include "raylib.h"
|
|
|
|
int main()
|
|
{
|
|
int screenWidth = 800;
|
|
int screenHeight = 450;
|
|
InitWindow(
|
|
screenWidth, screenHeight, "raylib [core] example - basic window");
|
|
SetTargetFPS(60);
|
|
|
|
// Initialise networking
|
|
InitNetwork();
|
|
|
|
//
|
|
|
|
// Main game loop
|
|
while (!WindowShouldClose()) {
|
|
BeginDrawing();
|
|
ClearBackground(RAYWHITE);
|
|
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
|
|
EndDrawing();
|
|
}
|
|
CloseWindow();
|
|
|
|
return 0;
|
|
} |