https://github.com/tdiprima/space_invaders
Basic Space Invaders Game - Code written with Cursor AI
https://github.com/tdiprima/space_invaders
Last synced: 3 months ago
JSON representation
Basic Space Invaders Game - Code written with Cursor AI
- Host: GitHub
- URL: https://github.com/tdiprima/space_invaders
- Owner: tdiprima
- License: mit
- Created: 2025-04-10T16:28:26.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-10T16:50:11.000Z (6 months ago)
- Last Synced: 2025-06-07T07:36:42.428Z (4 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Space Invaders
A simple implementation of the classic Space Invaders game using Python and Pygame.
## Requirements
- Python 3.x
- Pygame 2.5.2## Installation
1. Install the required dependencies:
```bash
pip install -r requirements.txt
```## How to Play
1. Run the game:
```bash
python game.py
```2. Controls:
- Left Arrow: Move left
- Right Arrow: Move right
- Space: Shoot## Game Rules
- Control the green player ship at the bottom of the screen
- You have 3 health points (shown as green squares in the top-left corner)
- Shoot the red enemy ships before they reach the bottom
- Avoid enemy bullets - getting hit reduces your health
- The game ends if:
- You lose all 3 health points
- Any enemy ship reaches the bottom of the screen
- You destroy all enemy ships (Victory!)## Features
- Simple and clean graphics
- Smooth controls
- Player health system
- Enemy shooting mechanics
- Collision detection
- Enemy movement patterns
- Bullet mechanics
- Visual health indicator