boids-playground/src/main.cpp
2023-07-17 13:58:36 +00:00

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;
}