🚀 Astro Space Game

🌌 Project Description

Astro Space Game is a 2D arcade-style space shooter built with Python and Pygame, designed to immerse players in a colorful cosmic battlefield. Players pilot a spaceship through waves of tumbling asteroids, collecting power-ups and avoiding collisions to survive as long as possible. Featuring dynamic difficulty, retro-style visuals, and explosive effects, the game is a throwback to classic space shooters — modernized for today's players.

This game was developed for The Stellar Gateway Hackathon to provide a fun, interactive experience inspired by the vastness and danger of outer space.


🎮 Gameplay Overview

🔁 Game Flow

  • Splash Screen: Animated logo with music.
  • Main Menu: Start, Best Score, Instructions, Settings, Quit.
  • Gameplay: Dodge, shoot, survive asteroid waves.
  • Pause Menu: Resume, Main Menu, Quit.
  • Game Over: Displays score with retry or exit options.

🎮 Core Mechanics

  • Controls:

    • Arrow Keys / WASD: Move
    • Space: Fire bullets
    • X: Energy Blast
    • P: Pause
    • M: Mute
    • F1: Fullscreen
  • Player:

    • Starts with 3 lives
    • Gains power-ups
    • Temporarily invincible after hit
  • Asteroids:

    • Fall randomly from above
    • Vary in speed and pattern
    • Increase in difficulty over time
  • Power-Ups:

| Name | Color | Effect | | ----------- | ------ | -------------------------------- | | Double Shot | Purple | Fires two bullets simultaneously | | Shield | Blue | Grants temporary invincibility | | Speed Boost | Yellow | Increases ship speed | | Extra Life | Red | Adds an extra life |

  • Scoring:

    • +10 for asteroid destroyed
    • +50 for every 30s survived
    • +20 for power-up
    • −50 for collision (score never below zero)
    • Floating score animations
    • High scores saved locally

🧠 Technologies Used

  • Language: Python 3.6+
  • Game Engine: Pygame 2.0+
  • Libraries: pygame, random, os, sys
  • Sound & Graphics: Custom assets + open-source music and effects

Built With

Share this project:

Updates