Skip to content

Python3 based 2D Space Shoot Game. Coded by @AbirHasan2005. For any help Join Telegram group; http://t.me/linux_repo

Notifications You must be signed in to change notification settings

AbirHasan2005/spaceshooter

Repository files navigation

Space Shooter v2.0:

Python3 based 2D Space Shoot Game. Now Two Games Included. Coded by @AbirHasan2005.

Game Details of spaceshooter_rocky.py (New):

  • Better images.
  • Sound on actions.
  • Can move only in bottom of the Map. Only Left & Right movement.
  • Can control with Left & Right Arrow Keys. Press Space Key for Leaser Bullets.
  • Health bar for the space ship.
  • Score board to show how you are faring so far.
  • Power UPs like:
    • Shield: Increases the space ships life.
    • Bolt: Increases the shooting capability of the ship by firing 2 to 3 bullets instead of one at time.
  • Custom sounds and sprite animation for things like.
    • Meteorite Explosion.
    • Bullet Shoots.
    • Payer Explosion.
  • 3 lives Per Game.
  • So Fun to play.

Game Details of spaceshooter_normal.py (Old):

  • Low quality images.
  • No sound.
  • Can move to anywhere in the Map.
  • Can control with WASD word Keys. W = UP, A = Left, S = Down, D = Right. Press Space Key for Leaser Bullets.
  • Health bar for the space ship.
  • Level Board.
  • Starts again after Game Over.

Please Check Releases:

GitHub release (latest by date)

Imports:

# For spaceshooter_normal.py

import pygame
import os
import time
import random
# For spaceshooter_rocky.py

from __future__ import division
import pygame
import random
from os import path

Requirements:

  • Windows OS/Linux OS/Mac OS
  • Python3
  • PIP3
  • Git (Optional)
  • pygame Module

Setup:

  • Linux/Mac:

    • Command: git clone https://github.com/AbirHasan2005/spaceshooter && cd spaceshooter && pip3 inatall -r requirements.txt
  • Windows:

    • Command: git clone https://github.com/AbirHasan2005/spaceshooter && cd spaceshooter && pip inatall -r requirements.txt
    • If you don't have Git installed then download the ZIP file(spaceshooter-master.zip), Extract, Double Click the setup_for_Windows.bat file for the setup for Windows.

Start Game:

  • Linux/Mac:

    • Run the spaceshooter.py file
    • Command: python3 spaceshooter.py
  • Windows:

    • Double Click the spaceshooter.py file or
    • Command: python spaceshooter.py

For Any Kind of Help:

Don't Forget to Share Your Best Score in Our Telegram Group!

Follow Me:

Donate Me:

paypal