HeadBall  1.0
A game

Project for the completion of the course of Object Oriented Programming (OOP) [CT 451]

Year: I
Part: II

This project is about making a game called HeadBall in C++ programming language based on Object Oriented Programming (OOP) approach. Headball is a simple cross-platform, multiplayer game played for fun that exist only on digital platform. The sole purpose of creating this game is for learning game development in C++ with OOP approach and for partial fulfillment of the requirements for the practical course on Object Oriented Programming. For this purpose Simple and Fast Multimedia Library (SFML) is used for rendering windows and different objects in screen and Box2D is used as physics library to create realistic world in game. Both of these libraries are easily accessible in the web and can be used by reading the documentation. All the codes were written using Visual Studio Code, an open source code editor.

Although the game is fully functioning, there are still rooms for improvement and new features can be added to make game better and entertaining. This game is recommended for players of any age group and the game with source code can be downloaded from our GitHub repository.

Key Words: Box2D, HeadBall, OOP, SFML

Project Report:

PDF version of the project report is available at: project_report.pdf

Complete LaTeX source code of the project report is available in another branch:
https://github.com/RujalAcharya/HeadBall/tree/report

Documentation:

Complete online documentation of the project is available at:
https://rujalacharya.github.io/HeadBall.

Doxygen-generated source code of the documentation in LaTeX as well as HTML version are also available in another branch:
https://github.com/RujalAcharya/HeadBall/tree/documentation

Compiling and Executing:

Linux:

  1. First clone this repository:
git clone https://github.com/RujalAcharya/HeadBall.git
  1. Change the directory to HeadBall/code/:
cd HeadBall/code/
  1. Then execute the accompanying bash script build after making it executable:
chmod +x build # making the script executable
./build # executing the script

Or, you can directly run the above script with this one liner:

sh -c "chmod +x build && ./build"
  1. Enjoy!

By:

  • Prajwol Pradhan (PUL076BEI023)
  • Rujal Acharya (PUL076BEI029)
  • Sanjay KC (PUL076BEI038)
  • Asmin Silwal (PUL076BEI040)

References to assets used in the game:

We are thankful to the following sources for the assets that we have used in our game: