Skip to content

Mkn0021/Flappy-Bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshots

Feature

Responsive Screen Size: The game adapts to different screen sizes, providing a consistent and enjoyable experience across devices.

Dynamic Sound Effects: Engage players with immersive sound effects, including background music and interactive bird actions.

Customizable Bird Appearance: Choose from a selection of three vibrant bird colors, allowing players to personalize their gaming experience.

Challenging Obstacle Patterns: Experience a variety of obstacle patterns that dynamically change, providing an ever-evolving challenge for players.

Score Tracking: Keep track of players' achievements with a built-in scoring system, encouraging competition and improvement.

Responsive Controls: Ensure smooth and responsive controls, enhancing the player's ability to navigate through obstacles with precision.

Game Over Screen: Implement a visually appealing "Game Over" screen with feedback on the player's performance and an option to restart the game.

<---For More Try Yourself--->

To run this code in Code::Blocks, you need to follow these steps:

  1. Install Code::Blocks:

    • Download and install Code::Blocks from the official website: Code::Blocks Download
    • Make sure to download the version that suits your operating system.
  2. Set up SFML:

    • Download the SFML library from the official website: SFML Download
    • Follow the installation instructions for your operating system.
  3. Create a new project in Code::Blocks:

    • Open Code::Blocks and go to File > New > Project...
    • Choose "Console application" and click "Go."
    • Select "C++" as the language and click "Next."
    • Choose a project title and location, then click "Next."
    • Select "Console application" again and click "Next."
    • Choose a compiler. Usually, the default GNU GCC Compiler works fine. Click "Finish."
  4. Add SFML to the project:

    • Open the project you just created.
    • Right-click on the project name in the "Management" pane and select "Build Options."
    • In the "Build Options" window, go to the "Linker Settings" tab.
    • Click "Add" and add the SFML library files (e.g., sfml-graphics, sfml-window, sfml-system, etc.).
    • Click "OK" to close the "Build Options" window.
  5. Copy and paste the provided code:

    • Copy the entire code you provided.
    • Create a new source file in Code::Blocks (right-click on "Sources" in the "Management" pane, choose "Add Files...").
    • Paste the code into the new source file.
  6. Adjust file paths:

    • Make sure that the file paths for your assets (images, sounds, etc.) in the code are correct relative to your project directory.
  7. Build and Run:

    • Build your project by clicking the "Build" button (usually a hammer icon).
    • Run your project by clicking the "Run" button (usually a green play icon).
    • If everything is set up correctly, the Flappy Bird game should run in a new window.

Remember to check the console for any error messages if the program doesn't run as expected. If there are any missing dependencies or incorrect file paths, the console output will provide useful information.

For any types of problems, feel free to contact Me.

About

A Flappy Bird Game made with C++ using SFML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages