changed speed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user