Skip to content

ehirvi/space_defender

Repository files navigation

Space Defender

Defend the galaxy from aliens that shoot acidic vomit at you!

Description

Aliens are spawned at random locations above the visible screen and at random intervals. They slowly creep down to try and reach the bottom. If they see you under them, they start shooting. You can try to avoid them or shoot back.

Instructions

Move around with ARROW KEYS, shoot with SPACE BAR and pause the game with ESC

Preview

Assets

Gameplay

Development Mode

Turning on the dev_mode setting in the config shows all the collision boxes and detection zones

Technologies Used

  • Python
  • Pygame
  • Photopea (for image assets)

Setup

Requirements

Installation

  1. Clone this repository and in the root folder create a virtual enviroment with python -m venv .venv
  2. (Linux/macOS) Start the virtual enviroment with source .venv/bin/activate
  3. (Windows) Make sure you use Git Bash instead of PowerShell and run source .venv/Scripts/activate
  4. Install required packages with pip install -r requirements.txt
  5. Start the game with python main.py
  6. After you are done exit the virtual enviroment with deactivate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages