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 322f8e847f5b0febc13333c6c01c0bb2fae1bd64
parent c318e679fa5029891e3e46af492e627e1aa08862
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 19 Apr 2026 01:03:54 +0000

chore: format

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

diff --git a/src/game.c b/src/game.c @@ -22,7 +22,7 @@ typedef enum { TITLE, PLAY } Screen; Screen screen = TITLE; float backgroundScroll = 0.0f; float baseScroll = 0.0f; -char* birdColor = NULL; +char *birdColor = NULL; void draw_message() { if (screen != TITLE) @@ -58,9 +58,10 @@ void draw_background() { void draw_bird() { if (birdColor == NULL) { - char *birdColors[3] = { "red", "blue", "yellow" }; + char *birdColors[3] = {"red", "blue", "yellow"}; - birdColor = birdColors[rand() % (sizeof(birdColors) / sizeof(birdColors[0]))]; + birdColor = + birdColors[rand() % (sizeof(birdColors) / sizeof(birdColors[0]))]; } if (!IsTextureValid(birdTexture)) {