Report Oop
Report Oop
Karachi Campus
Submitted By:
Submitted to:
Table of Contents
INTRODUCTION:............................................................................................................................................................3
OOP CONCEPTS USED IN PROJECT:...............................................................................................................................3
UML CLASS DIAGRAM...................................................................................................................................................4
FEATURES OF YOUR PROJECT:.......................................................................................................................................4
CODE:............................................................................................................................................................................ 4
INTERFACES:................................................................................................................................................................18
CONCLUSION:..............................................................................................................................................................19
INTRODUCTION:
This project is a simple 2D shooting game developed in Java using the Swing framework.
The player controls a plane that can move in all four directions and shoot bullets to
destroy falling enemy rockets. The game combines basic object oriented programming
concepts with graphical rendering and real time interaction, making it an excellent
beginner friendly project for understanding Java game development.
The objective of the game is to score as many points as possible by shooting down enemy
rockets before they reach the bottom of the screen or collide with the player's plane. Each
successful hit increases the player's score. The game also maintains a high score, which is
stored locally using file I/O operations, allowing the player to track their best
Encapsulation
Inheritance
Polymorphism
Abstraction
Object Composition
Game loop managed with separate threads for rendering and updates.
INTERFACES:
CONCLUSION:
In conclusion, this 2D shooting game effectively demonstrates the application of core objectoriented
programming concepts to build an engaging and interactive experience. With features like real time scoring,
animated effects, collision detection, and high score tracking, the game offers a solid foundation for learning
Java and game development. It provides a practical example of how object oriented design can structure a
complex system into manageable and reusable components.