Skip to content

A simple 2D shooting submarie game project made with C++ and SDL2 library.

License

Notifications You must be signed in to change notification settings

Mahmud-Araf/The_Hunt_For_Red_October

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The_Hunt_For_Red_October

CSE-1211 Lab Project (Fall 2022)


Intro image


Current Version


1.1


Outline


This is an academic project of the course CSE-1211 for 1st year 2nd semester in the Department of Computer Science and Engineering of the Univeristy of Dhaka. The game project is developed for only Linux as of now using SDL2


In Details


The Hunt For Red October is a 2D Third-person Shooting game. The game project is inspired by the 1990 movie of the same name The Hunt for Red October.

The game has two levels till now Easy and Hard . Both levels are endless.

In each level the protagonist submarine Red October has to avoid being hunted by enemy submarines and ships and has to shoot the enemies with torpedos and missiles to score. The game will over when lives becomes zero.

I will try to add new levels and challenges in the game in near future.


Pre-requisites


For Debian and Debian based distributions:

  • g++
  • libsdl2-image-dev
  • libsdl2-ttf-dev
  • libsdl2-mixer-dev
  • libsdl2-dev or equivalent packages for other distributions.

Running the game


1. using Terminal


After opening the terminal in the folder where the game folder is simply use the command make all or ./a.out or write

g++ src/*.cpp -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2_mixer && ./a.out

to run the game.


2. using Unity Launcher


open the launcher.desktop using any text editor (gedit,nano,vim,vscode etc.).

In the file assign the full path of a.out in Exec. Like this:

Exec=/home/user-name/The_Hunt_For_Red_October/a.out

then assign the full path of this game folder in Path. Like this:

Path=/home/user-name/The_Hunt_For_Red_October/

finally assign full path of an icon image in Icon. Like this:

Icon=/home/user-name/The_Hunt_For_Red_October/assets/obj & background/mainmenubg.png

After that move or paste the launcher.desktop file in desktop and right clicking tick on Allow Launching and in Properties make sure you ticked Allow executing as program in the Permissions section. Now, double clicking the icon / launcher will launch the game.


Video Link:


https://youtu.be/7D8OlUxwNgY


Hope you will enjoy


About

A simple 2D shooting submarie game project made with C++ and SDL2 library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published