About the Game
Arcade space duels versus a reactive computer opponent.
Overview
Computer Player Space Shooter is a local arcade-style space duel built using Python and Pygame. The player controls the yellow ship, while a computer-controlled opponent pilots the red ship. The goal is to reduce the opponent’s health to zero using movement, shooting, and strategic positioning.
The AI behavior scales with difficulty. As difficulty increases, the computer opponent moves faster and fires more frequently. The game emphasizes responsiveness, readable visuals, and fast restarts after each round.
Key Features
- Single-player gameplay against a difficulty-scaled AI
- Three modes: Easy, Medium, and Hard
- Health and score HUD displayed during gameplay
- Power-ups that restore health and affect match flow
- Pause and resume functionality using the keyboard
- Smooth gameplay targeting 60 FPS
Installation and Execution
- Install Python 3.10 or later
- Install Pygame using
python -m pip install pygame - Ensure all image and audio assets are located in the same directory as
main.py - Run the game using
python main.py
Note: Asset file names should not contain spaces. Ensure filenames used in the code match the actual asset names exactly.
Frequently Asked Questions
What controls are used?
Movement: W, A, S, D>
Fire: Enter
Pause: Esc
Is controller support available?
No. The game is designed for keyboard input only.
Is multiplayer supported?
No. The current version supports single-player gameplay against the computer.
Credits
Game design and programming: Habib Asfahani
Engine: Pygame
Audio and visual assets are used for educational purposes.
License
The project is intended for educational use. Code and assets may be adapted with appropriate attribution where applicable.