Skip to content

amul-agrawal/pygame-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

ISS Assignment 3

Game Development using Python and PyGame

River Battle

Amul Agrawal
2019101113

Hello there! This is a small game developed by me for my course assignment. Read the instructions here and try out the game. I hope you like it :)

Gameplay and Rules :

The game has two rounds, each round consists of both the players playing once against each other.

Player 1 is at bottom and has to reach the other end by avoiding all the obstacles and in minimum time.

Player 2 starts at the top of the screen and has to reach the bottom, the other objectives remain the same.
As the player crosses a band, he/she is rewarded points according to the number of obstacles in that band, the rules are –

  1. +5 for fixed obstacles
  2. +10 for moving obstacles

The player with the greater score wins that particular round, score decreases as time passes.Time penalty is 1 point for 2 seconds.

In the next round, the speed of the moving obstacles increases for the winner of the previous round.

The game automatically closes after the second round.

Controls:

Keyboard Arrow Keys to move up, down, left and right.

How to install and run on Linux:

  1. Download the folder/copy it to your local device.
  2. Install python, pygame
    1. Check this link to get them installed on linux – https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/
    2. Download PyGame – https://www.pygame.org/download.shtml
    3. Further help - https://www.pygame.org/wiki/GettingStarted
  3. Open the folder in Terminal and run :
    1. python3 main.py
  4. Enjoy the Game.

How to install and run on Windows:

  1. Download the folder/copy it to your local device.
  2. Install python, pygame
    1. Download python3 – https://www.python.org/downloads/release/python-376/
    2. Download PyGame – https://www.pygame.org/download.shtml
    3. Further help - https://www.pygame.org/wiki/GettingStarted
  3. Open the folder in Python IDE or some other IDE like PyCharm or code editor like VS CODE and run :

    https://www.jetbrains.com/pycharm/download/
    https://code.visualstudio.com/download

    1. python3 main.py
  4. Enjoy the Game.

Attributes

In this game I have used Python 3 and PyGame.

These are some resources I used for icons. Icons made by Freepik from www.flaticon.com
Icons made by surang from www.flaticon.com
Icons made by Smashicons from www.flaticon.com

For the game development i have used PyCharm by JetBrains https://www.jetbrains.com/pycharm/download/

Releases

No releases published

Packages

No packages published

Languages