This repository is dedicated to the Crossing Game, a simple yet challenging game where the player's objective is to cross a busy road without getting hit by oncoming traffic.
The Crossing Game is inspired by classic arcade games where timing and speed are key. Navigate your character across the screen while avoiding speeding vehicles. Each successful crossing increases the game's difficulty by speeding up traffic. How far can you go?
This game is created using:
- Python 3.8+
- Turtle Module
main.py
- The entry point of the game, containing the main game loop.player.py
- Defines the Player class with player movement logic.car_manager.py
- Handles car generation and movement on the road.scoreboard.py
- Manages the scoring system and displays the current level.
To run this game, make sure you have Python 3 installed. Execute the game by running the main.py
file:
python main.py
- The player starts at the bottom of the screen and must reach the top to score a point.
- Press the "Up" arrow key to move the player upward.
- Avoid the cars that cross the screen horizontally.
- Each time the player reaches the top, the game's difficulty increases.
- Increasing difficulty with each level
- Dynamic car generation for varied gameplay
- Collision detection with game over scenario
- Persistent score tracking across levels
This game is developed by Ali Jafarbeglou. If you have any queries or suggestions, feel free to reach out or propose changes.