commit 92fb309c8e904a59d20446c99c7ea3f16fa32132
parent e52f6f605c8c46276bb24e75f1bb75035d0a4e3f
Author: Henry Unite <unitehenry@gmail.com>
Date: Sun, 19 Apr 2026 17:34:20 +0000
chore: format
Diffstat:
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/game.c b/src/game.c
@@ -204,9 +204,9 @@ void draw_score() {
float centerX = (screenWidth - scoreTexture[0].width) / 2.0f;
- float centerY = 0.0f + (scoreTexture[0].height * 1.5f);
+ float scoreY = 0.0f + (scoreTexture[0].height * 1.5f);
- DrawTexture(scoreTexture[0], centerX, centerY, WHITE);
+ DrawTexture(scoreTexture[0], centerX, scoreY, WHITE);
}
void draw() {
@@ -252,10 +252,7 @@ Vector2 random_pipe_y() {
float topPipeY = pipeY - gap - pipeTexture.height;
- Vector2 pipeVector = {
- bottomPipeY,
- topPipeY
- };
+ Vector2 pipeVector = {bottomPipeY, topPipeY};
return pipeVector;
}