Skip to content

A game I made during my senior High School as a CS Project.

Notifications You must be signed in to change notification settings

MrDracs/Space_Warriors_Pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Using Python’s Pygame Library


Hello! I made this game as a project for my senior high school for the subject CS, while I was in Ingraham English Medium School, Ghaziabad . The game is made using the pygame library of python which I learnt from FreeCodeCamp.org on youtube, instructed by buildwithpython on youtube.
For the link of the video for reference, click here.
I got to have hands on experience on:
  • Python
  • Game development
  • Pygame Library
    During the project I got hands-on experience of working on python and how it makes things so easy using such a huge number of libraries.

    Files
    The repository contains a main.py, data folder, SPACE_WARRIORS.exe
  • main.py - This file contains the source code written in python, the code needs to be executed using a python interpreter, therefore, python should be installed in your system to run the file.
  • data folder - This folder contains all the resources used by the game that the main.py is referring to, like images, audios, etc.
  • SPACE_WARRIORS.exe - This is an executable package which can be run directly without the “data” folder or python installed in system. The executable is made using Pyinstaller, a tool to pack python files into executables.

    Run
    The game can be opened in two ways:
    1. By double-clicking the SPACE_WARRIOR.exe file, will run the game.
    2. By opening the "main.py" in IDLE and then running it like a python Program.
    The game opens as following:

    IN_GAME_SS


    Working
    The game works by the following rules:
  • Enemy Ships will be coming down the screen as soon as the game starts.You have to shoot down the enemy ships in order to score a point.
  • If you don't manage to shoot them in time, one of them might reach the position of your ship at bottom, and thus the game will end, and score will be displayed like this:

    GAME_OVER_SS
    Controls
  • For Navigation: Use the “Arrow Keys” provided on the Keyboard to navigate Left and Right.

  • To Shoot: Press the "SpaceBar" key to shoot bullets at the incoming target.

  • To exit: After the game is over, press "X" to exit, or you can use the close button on top of the window anytime to close it.

  • To restart: To restart the game, close the window and re-run the game.

    Have a good time Playing n Coding!

    My LinkedIn, Instagram & Email

  • About

    A game I made during my senior High School as a CS Project.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages