2. Introduction
The Flappy Bird game is a popular side-scrolling mobile game that gained widespread popularity
due to its simple yet addictive gameplay. In the game, the player controls a bird, guiding it
through
a series of green pipes that have gaps in them. The objective is to navigate the bird through the
gaps by tapping on the screen or pressing a key to make the bird flap its wings, causing it to
ascend momentarily.
3. Project Objective
Our objective for this project is to implement the game on PiTFT screen. We try
to create user-friendly interfaces to allow user better understand the game
instructions and workflows. The game allows users to choose playing modes
and background settings, and to control bird using touchscreen or keyboard
buttons. It also contains a score board function to track previous history.
4. Design
Our design process is to first create all static interfaces and buttons associated with
each interface. Then we started to create single player mode, including pipe and
background shifting, bird falling or jumping, score and life tracking, sound effect.
Then we created a backend json file and read/write to it when store new record.
Finally, we created the dual player mode based on the single player mode.
5. Testing
We tested our program in the same way as the developing steps. We tested the
overall structure of the game by traversing each interface, and test the single player
mode by checking the update of the score and life when bird moves. One difficulty
is that we need the user to input NetID to store their score. However, pygame does
not contain type-in box to get the keyboard input. Therefore, we added a new
interface and transfer the keyboard input to string and draw the string on the
screen. Finally, we finished the dual player implementation in a very short period of
time because all the fucntionalities are the same as in single player mode.
6. Drawings
This is the front page
This is the instruction page
This is the score board page
This is pause page when
users have to pause the
game because of
emergency
7. Results
Everything in our project performed as planned and our
team meets the goals outlined in the description. We
designed a new flappy bird game. In the demo, we
encouraged professor Skovira and TAs to play the game,
which gave everyone a lot of fun. Finally, the project got the
highly praise from professor Skovira and TAs.
8. Conclusion
Our final project was planned, developed and demonstrated as expected. We designed
a new version of Flappy Bird Game written in Python, which could be played either on
PiTFT screen or personal computer. Firstly, a user-friendly interface was implemented.
Secondly, single player mode was realized. In single player mode, each player have 3
lives and their NetIDs and final scores will be writen to a score board, which keeps track
of top 10 scores. Then the code of dual player mode was written. It gives users the
opportunity to compete with their friends, which will bring a lot of fun. We also
implemented two background settings, daytime and night modes. The users could also
choose either one background mode before playing the game. One difficulty for users
is that the horizontal shifting speed will increasing as time goes on. We also
implemented a hidden trick in the single player mode. When user achieves 10 scores,
the flappy bird will evolve into flappy Joe.