Advertisement
Cassimus

Program

May 24th, 2025
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System.Numerics;
  2. using Raylib_cs;
  3. public class Program
  4. {
  5.     private static void Main(string[] args)
  6.     {
  7.         const int windowWidth = 600;
  8.         const int windowHeight = 400;
  9.         const string title = "Raylib C#";
  10.         // ustawienia początkowe
  11.         Raylib.InitWindow(windowWidth, windowHeight, title);
  12.         Raylib.SetTargetFPS(60);
  13.         var pilka = new Pileczka(new Vector2(windowWidth / 2, 10));
  14.  
  15.         // pętla Gry
  16.         while (!Raylib.WindowShouldClose())
  17.         {
  18.             Raylib.BeginDrawing();
  19.             Raylib.ClearBackground(Raylib_cs.Color.Blue);
  20.  
  21.             // Raylib.DrawText("Witaj w raylib", windowWidth / 2, windowHeight / 2, 20,
  22.             //     Raylib_cs.Color.Yellow);
  23.  
  24.             pilka.Aktualizuj();    
  25.  
  26.             Raylib.EndDrawing();
  27.         }
  28.         Raylib.CloseWindow();
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement