generated from rpuzonas/raylib-cpp-template
29 lines
641 B
C++
29 lines
641 B
C++
#include <raylib-cpp.hpp>
|
|
|
|
int main() {
|
|
|
|
// Initialization
|
|
int screenWidth = 800;
|
|
int screenHeight = 450;
|
|
|
|
raylib::Color textColor(LIGHTGRAY);
|
|
raylib::Window w(screenWidth, screenHeight, "Raylib C++ Starter Kit Example");
|
|
|
|
SetTargetFPS(60);
|
|
|
|
// Main game loop
|
|
while (!w.ShouldClose()) // Detect window close button or ESC key
|
|
{
|
|
// Update
|
|
|
|
// TODO: Update your variables here
|
|
|
|
// Draw
|
|
BeginDrawing();
|
|
ClearBackground(RAYWHITE);
|
|
textColor.DrawText("Congrats! You created your first window!", 190, 200, 20);
|
|
EndDrawing();
|
|
}
|
|
|
|
return 0;
|
|
} |