SDL-minigame-[Edited And Published By mhrohani1385]
head football. The university final project ( Of GHOST-mHBr ) . Debugged By mhrohani1385 .
- Optimization Keyboard and Mouse Controlling
- Change Screen size and Cleanup code ( For customize screen size see here )
- Optimize Gravity and Speed of Ball and Character
at first you should install SDL2, SDL2_gfx, SDL2_image, SDL2_ttf, SDL2_mixer.
in debian based distributions this command will do that:
sudo apt install libsdl2*
also you will need g++ as compiler. You can install it by runnig this:
sudo apt install g++
There is a shell file named make.sh in the project root directory which help you with making the game.
Just try these commands on the project root directory:
sudo chmod +x make.sh
./make.sh
the above commands make "Program.out" which is the GAME itself!
Run the game with the following command:
./Program.out
after selecting names, characters and ball the game will start.
there are two characters which are controlled using 'w s a d' and arrow keys.
also, each character has a special power which is shown below its names (top of the screen).
the powers can be enabled by pressing 's' or bottom arrow. it is obvious that power bars(below each goal) must be complete.
you have 90 seconds. if any player scores more than 10 the game will finish!
Enjoy dude!
15 | #define SCREEN_SCALE [ Menual screen scale between 1..6 ]