https://github.com/anshmnsoni/turtle-crossing-game
https://github.com/anshmnsoni/turtle-crossing-game
gui oops-in-python python turtle
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/anshmnsoni/turtle-crossing-game
- Owner: AnshMNSoni
- Created: 2024-06-07T04:09:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T11:52:28.000Z (over 1 year ago)
- Last Synced: 2025-01-25T12:25:51.426Z (over 1 year ago)
- Topics: gui, oops-in-python, python, turtle
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ข Turtle Crossing Game
This is an upgraded version of the classic Turtle Crossing Game built using Python's `turtle` module. Help the turtle cross the road while avoiding incoming cars!
---
## ๐ Features
- ๐ฎ **Player-Controlled Turtle**
- ๐ฅ **Randomly Generated Moving Cars**
- โค๏ธ **3 Lives System**
- ๐ **Level Progression (Cars get faster)**
- ๐ง **Scoreboard**
- โธ๏ธ **Pause/Resume with 'P' Key**
- ๐ **Win/Loss Messages**
---
## ๐ File Structure
.
โโโ main.py # Main game loop
โโโ TurtleClass.py # Player and scoreboard logic
โโโ obstacles.py # Obstacle (car) generation
โโโ README.md # Game documentation
---
## โถ๏ธ How to Run
#### 1. Make sure you have Python installed.
#### 2. Clone the repository or download the files.
#### 3. Run the game:
```bash
python main.py
```
## ๐ฎ Controls
- โฌ๏ธ Arrow Up โ Move Turtle Forward
- โฌ๏ธ Arrow Down โ Move Turtle Backward
- ๐ P โ Pause/Resume the Game
## ๐ธ Screenshot
#### Preview

## ๐ Dependencies
- Python 3.x
- Built-in turtle, random, and time modules
## ๐งโ๐ป Author
### Ansh Soni
#### ๐ Python Developer | Tech Enthusiast
### ๐ Contact me
#### ๐LinkedIn: [Connect with me](https://www.linkedin.com/in/anshmnsoni)
### Just play once,
### Enjoy the game! ๐ฎ
### Thank you ๐ซ