Giter Site home page Giter Site logo

sdl-minigame-mhr's Introduction

SDL-minigame-[Edited And Published By mhrohani1385]

head football. The university final project ( Of GHOST-mHBr ) . Debugged By mhrohani1385 .

Changes :

  • 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

Installation

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++

Making

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!

Playing!

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!

To change screen size manually change this line of code and remake project :

15  | #define SCREEN_SCALE [ Menual screen scale between 1..6 ]

sdl-minigame-mhr's People

Contributors

ghost-mhbr avatar mhrohani1385 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.