Giter Site home page Giter Site logo

pygame-project's Introduction

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/

pygame-project's People

Contributors

amul-agrawal avatar saukb 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.