Skip to content

Latest commit

 

History

History
116 lines (46 loc) · 1.92 KB

README.md

File metadata and controls

116 lines (46 loc) · 1.92 KB

goflap Game

goflap

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.

Features

  • Simple and intuitive gameplay.
  • Responsive controls.
  • Graphics and sound effects.
  • Bird animation.
  • State variable updates.

Prerequisites

Before running the game, make sure you have the following prerequisites installed on your system:

Installation

  1. Clone the repository:

git clone https://github.com/gopal96685/goflap

  1. Navigate to the project directory:

cd goflap

  1. 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

  1. Build the game:

go build

Usage

  1. Run the game:

./goflap

  1. Use the spacebar to control the bird's movement. Press spacebar to make the bird jump and avoid the pipes.

  2. The game will continue until the bird collides with a pipe or the game window's boundaries.

goflap

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.

  2. Create a new branch:

git checkout -b feature/your-feature

  1. Make your changes and commit them:

git commit -m "Add your message here"

  1. Push to the branch:

git push origin feature/your-feature

  1. Create a new pull request.

License

This project is licensed under the MIT License.

Acknowledgements

  • The Flappy Bird game concept was originally created by Dong Nguyen.

Contact

For any inquiries or suggestions, please contact me.