rayflap

A Flappy Bird clone written in C and compiled to WebAssembly.
git clone https://unitehenry.com/git/rayflap.git
Log | Files | Refs | README

commit 55d2f48fc7e8e246dbff7b264709a6776da6cfcf
parent 3b2c855977b02fce0bd4278ce73ccee6f3c791f4
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 19 Apr 2026 01:32:39 +0000

chore: format

Diffstat:
Msrc/game.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/game.c b/src/game.c @@ -83,11 +83,13 @@ void draw_bird() { messageOffsetY = (messageTexture.height - birdTexture.height) / 5.2f; } - Rectangle source = { 0, 0, (float) birdTexture.width, (float) birdTexture.height }; + Rectangle source = {0, 0, (float)birdTexture.width, + (float)birdTexture.height}; - Rectangle dest = { centerX, centerY + messageOffsetY, (float) birdTexture.width, (float) birdTexture.height }; + Rectangle dest = {centerX, centerY + messageOffsetY, (float)birdTexture.width, + (float)birdTexture.height}; - Vector2 origin = { 0, 0 }; + Vector2 origin = {0, 0}; DrawTexturePro(birdTexture, source, dest, origin, 0.0f, WHITE); }