{"id":21702469,"url":"https://github.com/usmana5809/flappybirdgame","last_synced_at":"2025-03-20T16:25:16.828Z","repository":{"id":246421279,"uuid":"821081518","full_name":"usmana5809/FlappyBirdGame","owner":"usmana5809","description":"A Flappy Bird game implemented in C++","archived":false,"fork":false,"pushed_at":"2024-06-27T21:13:43.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T15:26:55.977Z","etag":null,"topics":["c","console-game","cpp","data-structures","data-structures-and-algorithms","flappy-bird-game","game-development","gameplay","score-tracker-in-c","simple-game","user-registration"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usmana5809.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-27T19:17:13.000Z","updated_at":"2024-06-27T21:13:48.000Z","dependencies_parsed_at":"2024-06-27T22:31:58.325Z","dependency_job_id":"8790d93d-b9e5-40dc-8de9-e3d8b25fe558","html_url":"https://github.com/usmana5809/FlappyBirdGame","commit_stats":null,"previous_names":["usmana5809/flappybirdgame"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FFlappyBirdGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FFlappyBirdGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FFlappyBirdGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FFlappyBirdGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usmana5809","download_url":"https://codeload.github.com/usmana5809/FlappyBirdGame/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244648256,"owners_count":20487231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","console-game","cpp","data-structures","data-structures-and-algorithms","flappy-bird-game","game-development","gameplay","score-tracker-in-c","simple-game","user-registration"],"created_at":"2024-11-25T21:16:02.523Z","updated_at":"2025-03-20T16:25:16.806Z","avatar_url":"https://github.com/usmana5809.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flappy Bird Game\nThis project is an implementation of the classic Flappy Bird game in C++.\n\n## Table of Contents\n- [Introduction](#introduction)\n- [Features](#features)\n- [Installation](#installation)\n- [How to Play](#how-to-play)\n- [Instructions](#instructions)\n- [Registered Users](#registered-users)\n- [Screenshots](#screenshots)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\nThis project simulates the famous Flappy Bird game using basic C++ console graphics. It includes features for user registration, gameplay mechanics, and basic user interface.\n\n## Features\n- User registration with username input.\n- Flappy Bird gameplay with obstacles.\n- Score tracking and game-over functionality.\n- Instructions for playing the game.\n- Viewing previously registered users.\n\n\n## Installation\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/your-username/FlappyBirdGame.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd FlappyBirdGame\n    ```\n3. Compile the code using a C++ compiler:\nCompile the C++ files using your preferred compiler (e.g., g++)\n    ```sh\n    g++ main.cpp -o flappybird\n    ```\n\n## How to Play\n# 1.Run the executable:\n ```sh\n    ./flappybird\n  ```\n# 2.Follow the on-screen menu:\n- Register your username.\n- Start the game and use the spacebar to make the bird fly.\n- Avoid obstacles to increase your score.\n- Press any key to go back to the main menu after game over.\n  \n## Game Output\n# 1.Main Menu Output\nWhen you run the program, it starts with a main menu where users can choose different options:\n```bash\n -------------------------- \n |      Flappy Bird       | \n --------------------------\n1. Register your User Name\n2. Start Game\n3. Instructions\n4. Registered Users\n5. Exit\nSelect option:\n```\n\n# 2.Registration Process\nIf you choose option 1 (Register your User Name), the output will prompt you to enter your username:\n```bash\n -------------------------- \n |      Flappy Bird       | \n --------------------------\nPlease Register your Name: [user enters their name]\n```\n\n- After entering your name, it will display the main menu again.\n\n\n## 3.Starting the Game\nIf the user selects option 2 to start the game:\n```bash\n -------------------------- \n |      Flappy Bird       | \n --------------------------\n\nFLAPPY BIRD\n\n----------\nControl \n-------- \n Spacebar = jump\nPress any key to start\n```\n\n\n## 4.Gameplay\nDuring gameplay, the console screen resembles:\n```bash\n -------------------------- \n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n |                         |\n -------------------------- \nScore: 0\n```\n- The bird (o) starts at a fixed position (6) within the console window.\n- Pipes (***) start to generate from the right side and move leftward across the screen.\n- Score is displayed on the right side, starting from 0.\n\n\n\n# 5.Gameplay Mechanics\n- Bird Movement\n**Flying:** Pressing the spacebar allows the bird (o) to fly upwards, adjusting its position to avoid obstacles (***).\n- Scoring\n**Score Display:** During gameplay, the current score is displayed on the right side of the console:\n- Score: 0\n**Increment:** Each time the bird successfully passes through a pair of obstacles (***), the score increments by 1.\n\n- Obstacles (Pipes)\n**Generation:** Pipes (***) are generated at random heights with a gap ( ) between them for the bird to pass through.\n**Movement:** Pipes move from right to left across the screen at a constant speed.\n\n- Collision Detection\n**Criteria:** If the bird collides with the top or bottom of a pipe (***), the game ends.\n\n  \n\n# 6. Game Over\nWhen the game ends due to a collision or if the user decides to exit (Esc), the following message is displayed:\n```bash\nThank you For Playing our game\n --------------------------\n-------- Game Over -------\n--------------------------\n----------Score: 5--------\n\nPress any key to go back to menu.\n```\n\n## Expected Output\n- Users will interact with the system via a command-line interface.\n- Menus will guide the user to perform various operations.\n- Success and error messages will be displayed accordingly.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Create a new Pull Request.\n\n## Contact\nFor any questions or suggestions, please contact [usmanazulfiqar2001@gmail.com](mailto:usmanazulfiqar2001@gmail.com).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmana5809%2Fflappybirdgame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusmana5809%2Fflappybirdgame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmana5809%2Fflappybirdgame/lists"}