Skip to content

venisprajapati/Boat-Rush

Repository files navigation

Boat-Rush

author: @venisprajapati

Project Overview

This is 2D game made with python library named Pygame. In this game there is a boat which has to transport goods to seashore. This boat has to face obstacles like burg, shark, another boats, and many other ships. This is infinite rush game. You are also given Realtime score. This game is made using various python libraries like pygame. NumPy, random, time and also object-oriented.

Benchmark

This game provides you features of scoreboard. This is score refers to the distance you covered in journey. By this game you can have ideas of boat simulations in real life with different types of hurdles. This game provides us the basic use of the python library named Pygame. By using this library, you can have chance to learn more about programming with python.

Features included in this project

In this pygame we have so many features like:

  • Object-oriented Python which gives us functionality of code reusability
  • Waves of Water
  • Speed of boat with respect to time
  • Time taken by player
  • Obstacles like:
    • Shark
    • Rock
    • Buoy
    • Other boat & Ships
    • Color of Sea is changes
  • Quit screen button
  • Game finish after 6 levels of successful gameplay

Drawbacks

  • The game sometimes slows when rendering of images are processed very closer like in same rows and columns.
  • This is single player game.
  • Being 2D and desktop game it has not FPS or multiplayer gaming concept, so this is low level game.

Libraries and Technical Info.

Pygame: Pygame is a set of Python modules designed for writing video games. Pygame adds functionality on top of the excellent SDL(Simple DirectMedia Layer) library. This allows you to create fully featured games and multimedia programs in the python language.

NumPy: NumPy is the fundamental package for scientific computing in Python. It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operations, random simulation and much more.

Random: This module implements pseudo-random number generators for various distributions.

Time: This module provides various time-related functions.

Object-Oriented python: Object-oriented programming fosters reusability. The modular approach used in object-oriented programming results in highly maintainable code. In object-oriented programming, every class has a specific task.

How to run this game in your PC.

Being a game ready project, user just required installed python interpreter with version 3.8.6 in PC.

You need to install pygame and numpy library in your python environment by following commands

pip install pygame==1.9.6
pip install numpy==1.19.2

Now open project in your pycharm or any IDE and run with installed python interpreter in that. User have to run main.py file. Virtual environment is not required here. :)

Screen-shots

Game run - 1

Game run - 1

Game run - 2

Game run - 2

Game Finish

Game Finish

Game over

Game over

thank you