Facebook
From MichaƂ, 2 Weeks ago, written in C++.
Embed
Download Paste or View Raw
Hits: 121
  1. #include <iostream>
  2. #include <raylib.h>
  3.  
  4. using namespace std;
  5.  
  6. int main () {
  7.     const int windowHeight = 720;
  8.     const int windowWidth = 1280;
  9.     InitWindow(windowWidth, windowHeight, "Moja pierwsza gra");
  10.     SetTargetFPS(60);
  11.  
  12.     while(WindowShouldClose() == false)
  13.     {
  14.         BeginDrawing();
  15.  
  16.         ClearBackground(RAYWHITE);
  17.  
  18.         DrawLine(windowWidth / 2, 0, windowWidth /2, windowHeight, BLACK);
  19.         DrawCircle(windowWidth/2,windowHeight/2, 20, BLACK);
  20.  
  21.         DrawRectangle(10, windowHeight/2 -60, 25, 120,BLACK);
  22.         DrawRectangle(windowWidth-35, windowHeight / 2 - 60, 25, 120, BLACK);
  23.         EndDrawing();
  24.     }
  25.  
  26.  
  27.     return 0;
  28. }