ArchanjoGabriel/pong-2d-cpp ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple two player Pong game in C++ that runs in an 800 by 600 window and feels like a clean portfolio project.

I want both paddles controllable from the keyboard, with Player 1 using W and S, and Player 2 using the up and down arrow keys. The ball should move around the screen, bounce off the top and bottom walls, detect paddle hits, speed up a little after each hit, and reset to the center after someone scores. Please keep track of both scores and show them on screen. Add a short pause before each new round starts, and play a sound when the ball hits a paddle.

Use SFML for graphics, window handling, audio, and font rendering, and set it up with CMake so it can build cleanly on modern systems. Keep the code simple and easy to follow, with a basic game loop, collision handling, and tidy organization. If you need to, look up the current SFML and CMake docs online so the project builds properly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab