Skip to content

Our Course Project for Python Programming in Semester-1.

Notifications You must be signed in to change notification settings

python-project-iiitb/Superhero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super-Hero

Apreviewofthegame.mp4

Description of the project:

We are creating a game. The game we are going to create as a part of our python project is Super_hero (we are still thinking of a better title ). For this project, we installed pygame before starting the project. The game starts with a person at the bottom left of the screen with a person standing there. Above the person, planks keep moving and as the person goes up the there will be more planks coming. There will be coins in between the planks which person has to collect gain score. While moving up if the person touches anyone one of the plank the game ends and the points he scored will be displayed. There will be dragons and guns which will be obstructions to the player. If the person crosses all the planks and reaches the gunman and the dragons start releasing bullets and fire respectively. If the person gets hit by fire or bullets the game ends and the points he scored will be displayed. From a distance above there will be thorns at the sides of the screen and also in this path, there will be some coins and bombs. If the person takes coins his score will increase if he touches the bombs the game ends and the obtained score will be displayed on the screen. If the person successfully crosses a certain part of the game then the dragons and the gunmen stop firing. After this path will begin again and the planks will start coming. The person should move forward without touching the planks. There will be coins in between the planks which increases the score if the person collects them. If he touches any one of the planks he will lose the game and the score will be displayed. Here the number of planks decreases as the person moves up. If the person finally reaches the top of the screen after crossing all the hurdles in between then he should capture the flag that is present at the top right corner of the screen. If the person captures the flag successfully he wins the game and the score he obtained will be displayed along with congratulations to the person.

Requirements for the game :

  • Images of coins
  • Bombs
  • Dragons
  • Gunmen
  • Thorns
  • Person
  • Flag.

Project Plan:

  • The project is expected to complete in 27 days.
  • First 7 days: Installing pygame by everyone,Creating screen and all the objects.
  • Next 8 days: Making all the objects on the screen to move.
  • Next 5 days: Creating/Finding some music to the game.
  • Next 5 days: Fixing the errors and other pending work in the game developed.
  • And 2 more days will be alloted for the members to complete the work if they delayed it due to some reasons.

System Requirements:

  1. Python-3
  2. Pygame

Instructions for installing pygame:

  1. Installing via pip
    • Run the command pip install pygame or pip3 install pygame.
  2. Installing with apt
    • Run the command sudo apt-get install python3-pygame.
  • For any problems vist this link.

Instructions to download the game:

  • Download the source code from the green button named Code.
  • After downloading the code, unzip it.
  • You can also clone the repository to your local machine by executing the command

git clone https://github.com/python-project-iiitb/Superhero.git

  • If you are a Linux user
    • Run the command python3 super-hero.py.
  • If you are a Windows user
    • Run the command python super-hero.py .
  • Enjoy the game :)

Instructions to play the game:

  • Firstly enter your name and click SPACE_BAR to start playing the game.
  • Use the arrow keys to control our superhero for moving in that specific direction.
  • There are moving and stationary obstacles (cactus, planks, fire, bullets, gunmen, dragon)
  • if one comes in contact with any of the obstacles he/she lose
  • If the player collects all 26 coins and reach the flag he/she wins the game.

A few references:

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages