Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dragonscypher/galactic-guardians

A fun game to play with friends on the same network
https://github.com/dragonscypher/galactic-guardians

blockchain cryptography opengl pygame socket-programming

Last synced: about 2 months ago
JSON representation

A fun game to play with friends on the same network

Awesome Lists containing this project

README

        

# 🌌 Galactic Guardians 🚀

Welcome to **Galactic Guardians**, an exciting multiplayer space shooter game! Whether you're playing solo or my ML model or with friends, defend the galaxy from alien invasions and aim for the highest score.

## 📖 Storyline

In the year 3050, the galaxy faces an unprecedented threat from alien forces. As a member of the elite Galactic Guardians, it's your mission to protect the galaxy and prove your skills in interstellar combat. Will you rise to the challenge and become the top Guardian?

## 🎮 Features

- 🌐 **Multiplayer Mode**: Play with friends over a local Wi-Fi network or face the aliens alone.
- 🖥️ **GUI Mode**: Enjoy the game with an engaging graphical interface using Pygame and OpenGL.
- 🔗 **Blockchain Logging**: Securely log game events like laser fires and alien destructions using blockchain technology.
- 🛡️ **Encrypted Communication**: Safe multiplayer interactions through encrypted data transmissions.
- 🎨 **Immersive Graphics**: Experience stunning graphics, including spaceships, lasers, and aliens.

## 🛠️ Tech Stack

- **Python**: Core programming language
- **Pygame**: For rendering graphics and handling game events
- **PyOpenGL**: For OpenGL rendering
- **Socket Programming**: For multiplayer networking
- **Cryptography**: For secure communication
- **Blockchain**: For logging game events

## 🚀 Getting Started

### Prerequisites

Ensure you have Python and pip installed. Then, install the required packages:

```bash
pip install pygame PyOpenGL cryptography
```

## Running the Game

### Server Mode

Start the game in server mode:
```bash
python Galactic_Guardians.py --mode server
```

### Client Mode

Connect to a server:
```bash
python Galactic_Guardians.py --mode client --ip
```
Replace `` with the actual IP address of the server.

## 📚 Usage

Spaceship Controls:

- Move Up: W
- Move Down: S
- Move Left: A
- Move Right: D
- Fire Laser: Space


Game Objective:

- Navigate your spaceship to avoid incoming attacks.
- Destroy enemy aliens and compete for the highest score.
- Play against a computer opponent or join with friends for multiplayer action.

## Game Flow

- **Start Screen**: Press **ENTER** to begin your adventure.
- **Gameplay**: Control your spaceship, fire lasers, and avoid enemy attacks.
- **Game Over**: When hit by an enemy, the game ends. Scores are displayed, and you can restart by pressing **R**.

## 📄 License

This project is licensed under the MIT License - see the LICENSE file for details.