changed speed

This commit is contained in:
maxwes08
2025-12-09 08:45:40 +01:00
parent 9d8b31f0f0
commit 5d52c193c4

View File

@@ -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