Skip to content

alejaalvar/pygons

Repository files navigation

PyGons

A multi-platform fast-paced space shooter built with Python and pygame. Pilot your ship, dodge asteroids, and survive as long as you can.


Getting Started

Prerequisites

  • Python 3.10 or higher
  • pip

Installation

  1. Clone the repository:

    git clone https://github.com/alejaalvar/pygons.git
    cd pygons
  2. (Recommended) Create and activate a virtual environment:

    python3 -m venv venv
    source venv/bin/activate        # Linux/macOS
    venv\Scripts\activate           # Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run the game:

    python main.py

Dependencies

Package Version
pygame 2.6.1

Controls

Action Keys
Rotate left A / / J
Rotate right D / / L
Thrust W / / K
Shoot Space
Pause / Unpause P / Esc
Restart R
Quit Q

Coming Soon

  • 🔊 Sound effects — audio feedback for shooting, explosions, and collisions
  • 🎵 Music — background soundtrack to set the atmosphere
  • ⚙️ Settings menu — in-game options for customizing gameplay to your liking
  • 🪨 Bigger asteroids — larger threats that take up more space
  • 💥 Splitting asteroids — asteroids that break into smaller pieces on destruction
  • Escalating difficulty — asteroids get faster and more numerous as you survive longer
  • ❤️ Ship lives — multiple chances before game over
  • 🌠 Special events — meteor showers and other surprises to keep you on your toes
  • 💯 Points System - earn points for each asteroid destroyed and for surviving!

License

This project is licensed under the MIT License. See LICENSE for details.

Important Note

  • On some Linux distros, it is necessary to set the execution bits after installation in order to play the game. You can do so by entering the following on the ccommand line:
chmod a+x /path/to/download

It is also possible to change the permissions in most graphical file managers if you prefer to use a GUI. Simply inspect the properties of the file and view its permissions.

About

A fast-paced space shooter built with Python and pygame. Inspired by the legendary Atari game.

Resources

License

Stars

Watchers

Forks

Contributors

Languages