Mayur-Shiwal / Flappy_Bird_Game_SFML

This repository contains a simple Flappy Bird-inspired game developed using C++ and the SFML library. The game is built using Microsoft Visual Studio and showcases the usage of SFML for graphics, audio, and user input handling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flappy Bird Game with SFML in C++ - README

This repository contains a simple Flappy Bird-inspired game developed using C++ and the SFML library. The game is built using Microsoft Visual Studio, making use of the SFML library for graphics, audio, and user input handling.

Flappy Game Demo

Prerequisites

Before you begin, make sure you have the following installed on your system:

  • Microsoft Visual Studio with latest version installed
  • SFML library with latest version

Getting Started

  1. Clone the Repository: Start by cloning this repository to your local machine.

  2. Open the Project in Visual Studio: Launch Microsoft Visual Studio and select "Open a project or solution." Navigate to the directory where you cloned the repository and open the .sln file.

  3. Configure SFML: Make sure to configure SFML properly in your Visual Studio project. You need to set up include directories, library directories, and link dependencies. Refer to the SFML documentation or any guides available online for detailed instructions on how to do this.

  4. Build the Project: Build the project within Visual Studio. This will compile your C++ code and create the executable for the game.

  5. Run the Game: After building successfully, you can run the game by clicking the "Start" button in Visual Studio or by navigating to the output directory where the executable is located and running it from there.

How to Play

  • Press Enter to start the Game.
  • Press the Spacebar to make the character (bird) jump.
  • Navigate the character through the openings between the pipes.
  • The game ends when the character collides with the ground or a pipe.
  • Your goal is to achieve the highest possible score by surviving as long as you can.

Project Structure

The project follows a basic structure:

  • src/: Contains the C++ source code for the game.
  • include/: Contains header files for the game code.
  • assets/: Includes game assets like images and sounds.
  • demo.gif: An animated GIF showcasing the gameplay.

Contributing

Feel free to contribute to the project by adding new features, fixing bugs, or improving the code quality. To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your forked repository.
  5. Create a pull request to the original repository.

Credits

  • The game is inspired by the classic Flappy Bird game.
  • Developed by Mayureshwar Shiwal.

Have fun playing the game and exploring the code! If you have any questions or need assistance, feel free to reach out to us through the Issues section. Happy coding! 🚀

About

This repository contains a simple Flappy Bird-inspired game developed using C++ and the SFML library. The game is built using Microsoft Visual Studio and showcases the usage of SFML for graphics, audio, and user input handling.


Languages

Language:C++ 100.0%