commit 01bb0887a81509e60b4647b532d02887f12a6437
parent d66d9887f464c8174d0504966b1e70b55c1a82e7
Author: Henry Unite <unitehenry@gmail.com>
Date: Sun, 19 Apr 2026 04:18:59 +0000
feat: max rotate
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/game.c b/src/game.c
@@ -12,7 +12,7 @@ static const char *title = "rayflap";
static const int screenWidth = 288;
static const int screenHeight = 512;
static const int maxGravity = 3;
-static const int maxBirdRotate = 15.0f;
+static const int maxBirdRotate = 20.0f;
/* Textures */
Texture2D backgroundTexture;
@@ -102,10 +102,10 @@ void draw_bird() {
if (screen == PLAY) {
if (thrust > 0) {
- birdRotate += -2.0f;
+ birdRotate += -4.0f;
birdRotate = fmax(birdRotate, maxBirdRotate * -1);
} else {
- birdRotate += 2.0f;
+ birdRotate += 4.0f;
birdRotate = fmin(birdRotate, maxBirdRotate);
}