Goflap is a simple and addictive game developed using Golang. The objective of the game is to navigate a bird through a series of pipes without hitting them or the boundaries of the game window.
- Simple and intuitive gameplay.
- Responsive controls.
- Graphics and sound effects.
- Bird animation.
- State variable updates.
Before running the game, make sure you have the following prerequisites installed on your system:
- Golang: Installation Guide
- Clone the repository:
git clone https://github.com/gopal96685/goflap
- Navigate to the project directory:
cd goflap
- Install the necessary SDL packages:
Ubuntu
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
macOS
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
- Build the game:
go build
- Run the game:
./goflap
-
Use the spacebar to control the bird's movement. Press spacebar to make the bird jump and avoid the pipes.
-
The game will continue until the bird collides with a pipe or the game window's boundaries.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m "Add your message here"
- Push to the branch:
git push origin feature/your-feature
- Create a new pull request.
This project is licensed under the MIT License.
- The Flappy Bird game concept was originally created by Dong Nguyen.
For any inquiries or suggestions, please contact me.