Giter Site home page Giter Site logo

game's Introduction

This was my first project on python.

The code is pretty basic and doesn't use any advanced "pygame" functions, only the basic ones.

  1. To run the game you will have to extract all the given files in one directory like shown below.

Now the code is self explanatory and I've put comments wherever it was necessary.

  1. Only thing that I think is worth explaining is the "FPS" variable.

This thing particularly increases the number of times the screen is refreshed per second, or in simple terms the speed of the game.

  1. Next thing worth mentioning is this part,

Though I've tried to keep it as simple as possible, in a nutshell these particular set of lines is used to get the location of various files that are required to load before the game starts.

This is the particular reason for extracting the files in the same folder and not in different ones.

SCREENSHOTS FROM THE GAME

  1. This is the menu of the game:

  2. This is an In-Game shot:

    (i) The blue bar is the shield.

    (ii) The green bar is the health.

Warning

The game crashes upon you losing your health, I didn't get the time to work on that, but I'll try to do so as soon as I get the time.

Any Changes

If you wish to make any changes to this game feel free to do so, just don't forget to credit me for the part I've done, not only me, but with all the projects you pick up from github.

Thanks for using this repository!

:D

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.