Inspiration

My name is Sham Lal, and I come from Village Raja Farm City Daharki, District Ghotki, a rural and backward area in Sindh that isn't even on Google Maps. We have a severe lack of educational facilities, and there is a widespread belief that girls should not receive education but instead stay at home and take care of the household. This traditional mindset has held back the community's progress. Being from such a place, I felt a strong urge to do something that could change the mindset of my people. I wanted to create something that would demonstrate the value of education and inspire others to dream beyond the restrictions imposed by our circumstances.

What it does

The project is a recreation of the classic Flappy Bird game, built entirely in C++ using the SFML library. The game features pipes that move across the screen, and the player controls a bird that needs to navigate between the pipes without colliding. The game is designed to be simple, challenging, and entertaining.

How we built it

The game was built using C++ and the SFML library. I used object-oriented programming concepts to structure the game logically. I spent considerable time understanding the SFML library and integrating its features to build the game interface, load textures, and handle game mechanics. It took me about a month of effort to bring all the pieces together, including working on the movement mechanics of the bird, collision detection, and managing game assets like graphics and sounds.

Challenges we ran into

Coming from a rural area where education is almost non-existent, the biggest challenge was learning coding from scratch. I had never read about programming languages before joining Air University Islamabad, and coding was new to me. Learning C++ and understanding how to use the SFML library to create graphics-based applications were particularly challenging. Additionally, managing my time and finding the resources required to build the game was difficult, especially since I had no prior experience with graphics programming.

Accomplishments that we're proud of

One of my biggest accomplishments is successfully completing the project despite all the challenges. I started with little to no knowledge of programming and, within a month, was able to create a functioning game. The fact that I was able to create something that has the potential to inspire others in my community, especially those who have no access to quality education, is something that makes me proud. Additionally, I'm proud of the skills I learned along the way, including object-oriented programming, game development basics, and using the SFML library.

What we learned

I learned several important lessons through this project:

C++ OOP concepts: Understanding object-oriented programming was crucial in structuring the game efficiently. How to overcome challenges: This project tested my perseverance, and I learned that consistent effort is key to overcoming obstacles. SFML Library: Working with SFML helped me understand the basics of graphics programming, game loops, and handling animations. Coding skills and logical thinking: Building the game improved my coding skills and taught me how to solve problems logically and systematically.

What's next for Flappy Bird game in C++

Moving forward, I plan to enhance the game by adding more features such as: Different difficulty levels to make the game more engaging. Background music and sound effects to improve the gaming experience. Online leaderboard to allow players to compete globally and improve the competitiveness of the game. Additional obstacles and power-ups to make gameplay more dynamic and exciting. With these improvements, I hope to make the game even more fun while continuing to inspire others from my community.

Built With

  • and
  • c++
  • development
  • environment)
  • fast
  • framework:
  • ide:
  • languages:
  • library)
  • multimedia
  • platform:
  • sfml
  • simple
  • testing
  • visual-studio
  • windows
Share this project:

Updates