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.
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?
- 🌐 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.
- 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
Ensure you have Python and pip installed. Then, install the required packages:
pip install pygame PyOpenGL cryptography
Start the game in server mode:
python Galactic_Guardians.py --mode server
Connect to a server:
python Galactic_Guardians.py --mode client --ip <server_ip>
Replace <server_ip>
with the actual IP address of the server.
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.
- 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.
This project is licensed under the MIT License - see the LICENSE file for details.