0% found this document useful (0 votes)
3 views28 pages

Flappy Bird Game: Project Report

The document is a project report for the Flappy Bird game developed as part of a Master's in Computer Applications program. It outlines the project's objectives, implementation methodology, technologies used, system design, and testing procedures. The project aims to enhance Java programming skills while recreating the popular mobile game, focusing on game mechanics such as gravity, collision detection, and score tracking.

Uploaded by

parasjain0230
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views28 pages

Flappy Bird Game: Project Report

The document is a project report for the Flappy Bird game developed as part of a Master's in Computer Applications program. It outlines the project's objectives, implementation methodology, technologies used, system design, and testing procedures. The project aims to enhance Java programming skills while recreating the popular mobile game, focusing on game mechanics such as gravity, collision detection, and score tracking.

Uploaded by

parasjain0230
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

Flappy Bird Game

Project Report
Industrial PROJECT (MCA364)
Degree
MASTER OF COMPUTER APPLICATION

PROJECT GUIDE: SUBMITTED BY:


Mr. Vineet Saxena Arpit Jain (TCA2363024)
(Internal)

Aug-Dec, 2024

FACULTY OF ENGINEERING & COMPUTING SCIENCES


TEERTHANKER MAHAVEER UNIVERSITY, MORADABAD
ACKNOWLEDGEMENT

I am using this opportunity to express my gratitude to everyone who supported me through


this project on “Flappy bird Game”. I am thankful for their aspiring guidance, invaluably
constructive criticism and friendly advice during the project work. I am sincerely grateful to
them for sharing their truthful and illuminating views on a number of issues related to the
project.

I express my warm thanks to my internal guide, Mr. Vineet Saxena (Professor of CCSIT, TMU)
for hi constant support and guidance at all levels without whom this project would not have
been possible.

I would also like to extend my thanks to my external guide, to help me through this project.

Thank you,
Arpit Jain

Place:

Date:
DECLARATION

We hereby declare that this Project Report titled “Flappy Bird Game” submitted
by us and approved by our project guide, the College of Computing Sciences and
Information Technology (CCSIT), Teerthanker Mahaveer University, Moradabad, is
a bonafide work undertaken by us and it is not submitted to any other University
or Institution for the award of any degree diploma / certificate or published any
time before.

Project Group : Project Group Name/Id

Student Name: Arpit Jain Signature

Project Guide: Name Signature


(External)

Project Guide: Mr. Vineet Saxena Signature


(Internal)
Brief About the Company

CodeSquadz is a premium institute that offers profes-


sional education to those seeking to pursue their career
in IT. In addition, we offer specialized training programs
in various fields, including JAVA (Core, Advance, and Core
with Advance), Mern-stack, Mean-stack, PHP, Android,
iOS, Digital Marketing, Python, and AI/ML for improving
IT skills of our students. At CodeSquadz, we encourage
students and existing professionals alike to start and
reach greater heights in their IT careers. As a result, our
students are attaining higher positions in the IT industry
and achieving various milestones.

At CodeSquadz, we have a team of industry experts with


extensive experience to enhance one's subject knowl-
edge and shape the future of our students. Our experts
provide professional education to our students with a
practical approach to learning and mastering complex IT
concepts. Furthermore, all our IT training programs are
available at a competitive price, enabling students to en-
roll at CodeSquadz without worrying about its fees.
TMU-FOE&CS Version 5.0 T004A-Project Report

Table of Contents
1 PROJECT TITLE............................................................................................................................................ 7
2 PROJECT DESCRIPTION................................................................................................................................ 7
3 OBJECTIVE.................................................................................................................................................. 7
3.1 SCOPE OF THE WORK.......................................................................................................................................7
3.2 PROJECT MODULES..........................................................................................................................................7
3.3 CONTEXT DIAGRAM.........................................................................................................................................8
4 IMPLEMENTATION METHODOLOGY............................................................................................................ 8
5 TECHNOLOGIES TO BE USED........................................................................................................................ 8
5.1 SOFTWARE PLATFORM.....................................................................................................................................8
5.2 HARDWARE PLATFORM....................................................................................................................................8
6 SYSTEM DESIGN.......................................................................................................................................... 9
7 CLASS DESIGN............................................................................................................................................. 9
8 GAME PANEL.............................................................................................................................................. 9
9 GAME MECHANICS.................................................................................................................................... 10
10 ADVANTAGES OF THIS PROJECT................................................................................................................ 10
11 TESTING.................................................................................................................................................... 10
12 CHALLENGES AND SOLUTIONS.................................................................................................................. 10
13 FUTURE SCOPE AND FURTHER ENHANCEMENT OF THE PROJECT...............................................................11
14 PROJECT REPOSITORY LOCATION.............................................................................................................. 11
15 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS......................................................................................11
16 CONCLUSION............................................................................................................................................ 12
17 REFERENCES.............................................................................................................................................. 12

Appendix
A: Data Flow Diagram (DFD)
B: Entity Relationship Diagram (ERD)
C: Use Case Diagram (UCD)
D: Data Dictionary (DD)
E: Screen Shots

Project Title: Flappy Bird Game Page 6 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

1 Project Title
Flappy Bird Game

2 Project Description
Flappy Bird is a popular mobile game where the player controls a bird, attempting to fly
between pipes without touching them. The game gained immense popularity due to its simple
yet addictive mechanics. The primary goal of this project is to demonstrate fundamental
concepts of Java programming such as object-oriented design, GUI development, event
handling, and animation.

3 Objective
The objective of the Flappy Bird game developed in Java is to:

 Recreate the classic Flappy Bird game using Java Swing for graphical user interface (GUI)
development.
 Implement core game mechanics such as gravity, jumping, pipe movement, collision de-
tection, and score tracking.
 Enhance programming skills in Java by designing and implementing game features step
by step.

3.1 Scope of the Work


 User-Friendly GUI: An intuitive interface designed with Java Swing to guide users step-
by-step.

3.2 Project Modules


 The user can press the spacebar to start the game.
 The bird is under the influence of gravity, and the user can make the bird jump by
pressing the spacebar.
 Pipes move from right to left, with a gap for the bird to pass through.
 If the bird collides with a pipe or the ground, the game ends.
 The user can restart the game by pressing the spacebar button.

Project Title: Flappy Bird Game Page 7 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

3.3 Context Diagram

4 Implementation Methodology
 Requirement Analysis: Identify features and user needs.
 Design: Create wireframes and choose suitable templates.
 Development: Build the GUI using Java Swing, implement modules, and integrate func-
tionality.

5 Technologies to be used
 Programming Language: Java
 GUI Framework: Java Swing
 Graphics: Buffered Image for rendering the game components
 Game Loop: Timer-based game loop for continuous updating of game objects
 Collision Detection: Detecting collisions between the bird and the pipes using simple
geometric checks.

5.1 Software Platform


a) Java Development Kit (JDK 8 or higher)
b) Command prompt

5.2 Hardware Platform


 Processor: Intel Core i5 or higher
 Storage: 500MB free space
 RAM: 4GB RAM
 Window 7/8/10 and above
 64-bit OS

Project Title: Flappy Bird Game Page 8 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

6 System Design
The game is designed with several key components:

 Bird:
The character controlled by the player. The bird is affected by gravity and can jump
when a key event occurs (e.g., pressing the spacebar).
 Pipes:
Obstacles that the bird must navigate through. They continuously move from right to
left across the screen.
 Background:
A repeating background that gives the illusion of motion.
 Score:
Displays the current score based on how many pipes the bird has successfully passed.

7 Class Design
1. Main Class:
Initializes the game and starts the game loop.
2. Bird Class:
Represents the bird character, handles movement and collision.
3. Pipe Class:
Represents the pipes, manages their generation and movement.
4. Game Panel Class:
Handles rendering and game updates.
5. Score Class:
Tracks and displays the player's score.

8 Game Panel
This is the core of the game where all components (bird, pipes, background, etc.) are drawn and
updated. It handles:

 The game loop.


 Managing the bird and pipes.
 Handling key events like jumping and starting the game.
 Drawing the game state to the screen.

Project Title: Flappy Bird Game Page 9 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

9 Game Mechanics
 Gravity:
The bird is affected by gravity, which makes it fall when the player is not pressing the
spacebar.
 Jumping:
When the spacebar is pressed, the bird’s velocity is adjusted to make it jump upwards,
counteracting gravity.
 Collision Detection:
The game checks if the bird collides with pipes or the ground. If a collision occurs, the
game ends.
 Pipe Movement:
Pipes move from right to left at a constant speed. As the pipes exit the screen, new
pipes are generated, creating an endless loop.
 Scoring:
The player earns points when the bird passes through the gap between pipes. The score
is incremented when the bird successfully navigates through.

10 Advantages of this Project


 To reduce the stress level.
 For enhancing concentration.
 Ensures data accuracy through real-time validation.

11 Testing
Test case:

1. Bird Movement:
o Input: Key press
o Expected Outcome: Bird flaps upward.
2. Pipe Collision:
o Input: Bird collides with a pipe.
o Expected Outcome: Game over.
3. Score Increment:
o Input: Bird passes through pipes.
o Expected Outcome: Score increases by 1.

12 Challenges and Solutions


 Collision Detection:
Detecting collisions between the bird and the pipes or ground was handled using simple
bounding box checks (rectangular area overlap).

Project Title: Flappy Bird Game Page 10 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

 Game Over Handling:


The game over logic is simple: check if the bird’s coordinates intersect with any pipe or
if the bird falls below the ground.
 Performance Optimization:
The game uses a Timer to update the game objects at fixed intervals (20ms or 50 frames
per second) to ensure smooth animation and responsiveness.

13 Future Scope and further enhancement of the Project


 Add multiple levels with increasing difficulty.
 Implement sound effects and music.
 Add more complex graphics (bird animation, pipe design).
 Implement a leaderboard to store high scores.

14 Project Repository Location

S# Project Artifacts Location Verified by Verified by Lab


(softcopy) (Mention Lab-ID, Server ID, Folder Project Guide In-Charge
Name etc.)

1. Project Synopsis Report Name and Name and


(Final Version) Signature Signature

2. Project Progress updates Name and Name and


Signature Signature

3. Project Requirement Name and Name and


specifications Signature Signature

4. Project Report (Final Name and Name and


Version) Signature Signature

5. Test Repository Name and Name and


Signature Signature

6. Any other document, give Name and Name and


details Signature Signature

15 Definitions, Acronyms, and Abbreviations

Project Title: Flappy Bird Game Page 11 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Abbreviation Description
PDF Portable Document Format
Integrated Development Environment
IDE
Graphical User Interface
GUI
Java Development Kit
JDK

DFD Data Flow Diagram


UCD Use Case Diagram
ERD
Entity Relationship Diagram
CFG
Context-Free Grammar
ER
Entity-Relationship

16 Conclusion
This project successfully recreates the Flappy Bird game using Java. Through this project,
the importance of concepts like game loops, collision detection, and graphical rendering
in a game environment was clearly demonstrated. The project not only helped in
mastering Java programming techniques but also in understanding how to develop
interactive and real-time applications.

17 References
 https://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html
 https://itextpdf.com/en/resources/api
 https://poi.apache.org/
 https://docs.oracle.com/javase/tutorial/

Project Title: Flappy Bird Game Page 12 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Annexure A
Data Flow Diagram (DFD)
(Mandatory)

Level 0 DFD

Level 1 DFD

Project Title: Flappy Bird Game Page 13 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Annexure B
Entity-Relationship Diagram (ERD)

Project Title: Flappy Bird Game Page 14 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

(Mandatory)
Address Email

Name
User
Image

Contact

Creates

PDF Qualification

Resume

Skills

Project Title: Flappy Bird Game Page 15 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Annexure C
Use-Case Diagram (UCD)

Project Title: Flappy Bird Game Page 16 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Annexure D
Data Dictionary (DD)
(Mandatory)

Example:
User Table (USR)
Fields Data type Description
Name String Full name of the user
Contact String User's contact number
Email String User's email address
Address String Residential address of
the user
Image Binary User's profile picture
Skills String List of user's skills
Qualification String Academic qualifications
of the user
PDF Binary Generated PDF file of the
resume

Project Title: Flappy Bird Game Page 17 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Annexure E
Screen Shots

Project Title: Flappy Bird Game Page 18 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 19 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 20 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 21 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

This Page shows that all the data is filled and resume is generated.

Project Title: Flappy Bird Game Page 22 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 23 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 24 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 25 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 26 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

Project Title: Flappy Bird Game Page 27 of 28


TMU-FOE&CS Version 5.0 T004A-Project Report

The final output for the test resume.

Project Title: Flappy Bird Game Page 28 of 28

You might also like