tatimunizz/outbreakGame ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Breakout style game in C using raylib, with a clean desktop window and the whole thing playable from start to finish.

I want the player to move a paddle with the left and right arrows, launch the ball with space, pause and resume with P, and restart after winning or losing with Enter. The game should start with 3 lives, show the lives as red bars, keep score at the top, and give points for each brick broken. The ball should bounce around, destroy all the bricks, and end the game with either a win screen when everything is cleared or a defeat screen when all lives are gone.

Please keep it simple and self contained, with all the game logic easy to follow and no external images or sound files. Use CMake so it builds and runs easily on desktop, and if you need to check anything, look up the current raylib docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab