From 5d52c193c48666ce911778a22c888629375ee4a6 Mon Sep 17 00:00:00 2001 From: maxwes08 Date: Tue, 9 Dec 2025 08:45:40 +0100 Subject: [PATCH] changed speed --- Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 504d08b..f69014e 100644 --- a/Program.cs +++ b/Program.cs @@ -11,7 +11,7 @@ internal class Program uint gameHeight = 504; float gravity = 800f; // px/sec^2 float jumpForce = -300f; - float scrollSpeedInitial = 150f;// px/sec + float scrollSpeedInitial = 200f;// px/sec float scrollSpeed = scrollSpeedInitial; // px/sec float scrollDecay = 500f; // px/sec^2 float maxUpAngle = -30f; // tilt up max @@ -39,7 +39,7 @@ internal class Program // Create window RenderWindow window = new RenderWindow(new VideoMode(gameWidth, gameHeight), "Flappy Bird Clone"); window.Closed += (s, e) => window.Close(); - window.SetFramerateLimit(60); + window.SetVerticalSyncEnabled(true); // Setup view for scaling View view = new View(new FloatRect(0, 0, gameWidth, gameHeight)); @@ -95,7 +95,7 @@ internal class Program RectangleShape hitboxRect = new RectangleShape(new Vector2f(hitboxWidth, hitboxHeight)) { - FillColor = new Color(255, 0, 0, 100) // red with transparency + FillColor = new Color(255, 0, 0, 0) // red with transparency }; // Clock for deltaTime