OreonCZ/Breakout
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
///////////////////////////////// My Breakout project named Beardout, in honor of my bearded dragon. /// Game Description: - The player is greeted by the Main menu, which initially only allows exiting the game. To play the game, the player must click on the input field and enter their username to unlock the 'PLAY' button. The username is required to track scores for the TOP 8 leaderboard. After starting the game by clicking 'PLAY', the paddle, blocks, and the ball will spawn. At the start, the ball instantly moves to the left or right. The player can use the paddle to deflect the ball in various directions. Upon hitting a block, the player gains 10 points and the block is destroyed. The goal of the game is to destroy all the blocks on the screen. If the player successfully clears all blocks, the next round begins, and the ball speed is increased. The player's score is saved to a binary file. The username and score will be displayed on the LEADERBOARD in the Main menu if the player achieves a high enough rank. ///---------------------- /// Gameplay: - The paddle is controlled using either the A/D keys (A - left, D - right) or the arrow keys (<- = left, -> = right). - Pressing the 'ESCAPE' key during gameplay returns the player to the Main menu. ///---------------------- /// Requirements: - GCC compiler - SDL2 - SDL2_ttf - SDL2_mixer - CMake ///---------------------- /// How to compile and run (linux): // A simple 'setup.sh' bash script is included to automate the build process. // Type './setup.sh' into terminal to run it. / It is recommended to delete the 'build' directory if it already exists before recompiling: - rm -rf build /////// - mkdir -p build - cd build - cmake .. && make && ./breakout ///----------------------