diff --git a/examples/core/core_basic_window.cpp b/examples/core/core_basic_window.cpp deleted file mode 100644 index 540f4d932..000000000 --- a/examples/core/core_basic_window.cpp +++ /dev/null @@ -1,72 +0,0 @@ - -#include -#include "raylib.h" -#include -#include - -using namespace std; - -typedef struct room -{ - int x = 0; - int y = 0; - int width = 10; - int height = 10; -}; - - -room Temp_Rect_Creat() -{ - room in_creation; - - in_creation.x = int(rand() % 700); - in_creation.y = int(rand() % 400); - - in_creation.width = int(rand() % 50); - if (in_creation.width < 10) in_creation.width = 10; - in_creation.height = int(rand() % 70); - if (in_creation.height < 10) in_creation.height = 10; - - return in_creation; -} - -int main() -{ - srand(time(NULL)); - - int screenWidth = 800; - int screenHeight = 450; - - vector rooms; - InitWindow(screenWidth, screenHeight, "raylib [core] example - keyboard input"); - - Vector2 ballPosition = { (float)screenWidth / 2, (float)screenHeight / 2 }; - - SetTargetFPS(60); - - int i = 0; - while (i < 20) - { - room temp = Temp_Rect_Creat(); - rooms.push_back(temp); - i++; - } - - while (!WindowShouldClose()) - { - BeginDrawing(); - - ClearBackground(RAYWHITE); - - for (int i = 0; i < rooms.size(); i++) - { - DrawRectangle(rooms[i].x, rooms[i].y, rooms[i].width, rooms[i].height, BLACK); - } - - EndDrawing(); - } - - CloseWindow(); - - return 0; -} \ No newline at end of file