Coder Social home page Coder Social logo

river-crossing-game's Introduction

RIVER CROSSING GAME

Run the game in your system

Make sure that your system has the version of python>=3. Now, run the following commands in your terminal in order to run the game in your system:

  • git clone https://github.com/harshita130602/river-crossing-game
  • cd river-crossing-game
  • python3 game.py

Now, play the game!

Breif overview

The RIVER CROSSING GAME is a simple two-player game built by using pygame in python. The playing arena of game consists of a river with some partitions in it. There are 2 players in the game, one at Top and another at Bottom (2 sides of the river bank). A player is safe when it is standing on a partition/slab. There are two kinds of obstacles, moving and fixed. The player starts from the ‘START’ partition and must reach the ‘END’ position for player 1 and the ‘END’ becomes ‘START’, ‘START’ becomes ‘END’ for Player 2. The moving obstacles move from left to right. The player can move up, down, left and right using the up, down, left and right keys respectively. Player dies once he/she touches any obstacle. As player crosses moving obstacle successfully, accrues 10 points and for crossing fixed obstacles 5 points. Only one player is playing at a given point of time.

Your aim is to make players reach the other end of the river. The player wins the game based on

  • Time taken to cross
  • Points accrued while crossing obstacles

At the end of the game (after both the players either die or reach other ‘END’), the players are respawned to their starting position. If the player wins a round, the speed of moving objects increases in the next round for that player. Score for the game is displayed on the screen.

NOTE - This project is licensed under MIT License 2020. If you find any bugs in the game, please visit issues column to report the issue.

Enjoy the game!

Made with ❤️ by Harshita Upadhyay

river-crossing-game's People

Contributors

harshita130602 avatar

Watchers

James Cloos avatar  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.