- Name: Pranjal Sarnaik
- Date: 21 Dec 2024
A fun and interactive game where the player guides a turtle from the bottom to the top of the screen while avoiding cars moving from right to left. The game becomes progressively challenging as the cars move faster with each level. The player uses w
to move the turtle up and s
to move it down. The game ends if the turtle collides with a car.
- Use the
w
key to move the turtle upward. - Use the
s
key to move the turtle downward. - Avoid colliding with the cars moving from right to left.
- Reach the top of the screen to complete the level and reset the turtle’s position.
- Progress through levels as the car speed increases.
- The game ends if the turtle collides with a car.
- Level: Intermediate
- Skills: Object-Oriented Programming (OOP), Python Turtle Module, Time Module, Random Module, Game Development.
- Domain: Game Development
-
Player:
- The player can move the turtle up and down using the
w
ands
keys. - The turtle's position resets upon completing a level.
- The car speed increases with each level.
- The player can move the turtle up and down using the
-
CarManager:
- Generates cars with random colors ("red", "orange", "yellow", "green", "blue", "purple").
- Cars are created at random positions along the y-axis and move from right to left.
- Car speed increases as levels progress.
-
Scoreboard:
- Displays the current level of the game.
- Updates the level upon successful completion.
- Displays "Game Over" when the player loses.
- experiments: Contains temporary files and practice code used during development.
- screenshots: Includes gameplay screenshots.
-
Clone this repository:
git clone https://github.com/pranjalco/turtle-crossing-game-intermediate.git
-
Navigate to the project directory:
cd turtle-crossing-game-intermediate
- Ensure Python 3.9 or later is installed on your system.
- To run the program:
- Using PyCharm: Open the project in PyCharm and run
app.py
. - Using Terminal/Command Prompt: Navigate to the project folder and execute:
python app.py
- By Double-Clicking: You can double-click
app.py
to run it directly, provided Python is set up to execute.py
files on your system.
- Using PyCharm: Open the project in PyCharm and run
- If the console window closes immediately, run the program from the terminal/command prompt or IDE to see the output.
Created by Pranjal Sarnaik
© 2024. All rights reserved.