Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 108 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,2 +1,108 @@
A simple game in python using pygame,
some libraries heavily copied from http://eli.thegreenplace.net/2009/02/13/writing-a-game-in-python-with-pygame-part-iv/


## 🎮 Simple Avoidance Game — Python & Pygame

A **simple arcade game** built with **Python and Pygame** where you control a player block and dodge falling enemies. Test your reflexes and see how long you can survive!

---

### 🚀 Features

- Smooth player movement with arrow keys.
- Randomized falling enemies to dodge.
- Increasing difficulty over time.
- Live score counter.
- Game Over screen showing final score.

---

### 📦 Requirements

- Python 3.x
- Pygame

---

### ✅ Installation

1. **Clone this repository** (or download the `.zip`):

```bash
git clone https://github.com/yourusername/simple-pygame-game.git
cd simple-pygame-game
```

2. **Install Pygame** (if not already installed):

```bash
pip install pygame
```

---

### 🎮 How to Play

- Run the game:

```bash
python simple_game.py
```

- **Controls**:
- Move **Left**: `Left Arrow Key`
- Move **Right**: `Right Arrow Key`

- **Objective**: Avoid the falling red blocks as long as possible and achieve a high score!

---

### 🖥️ Screenshots

*(Optional: Add some screenshots or GIFs of gameplay here)*

---

### 🛠️ File Structure

```
simple-pygame-game/
├── simple_game.py # Main game file
└── README.md # Game instructions and info
```

---

### ✨ Future Improvements (Optional Ideas)

- Add levels and increasing speed.
- Add sound effects and background music.
- Add pause and restart functionality.
- Implement a main menu and game settings.
- Add high score saving.

---

### 🙌 Credits

Inspired and adapted from:
[eli.thegreenplace.net - Writing a Game in Python with Pygame](http://eli.thegreenplace.net/2009/02/13/writing-a-game-in-python-with-pygame-part-iv/)

Modernized and improved by: **[Your Name]**

---

### 📜 License

MIT License — free to use and modify.

---

### ❤️ Support

If you like this game, give it a ⭐ on GitHub and share it with others!

---


some libraries heavily copied from http://eli.thegreenplace.net/2009/02/13/writing-a-game-in-python-with-pygame-part-iv/