This is Project Demo
This is a Python Turtle Crossing Game.
- player.py -> This file is responsible for creating the turtle player for playing the game.
- scoreboard.py -> It handles the creation of the scoreboard, keeping track of player score after completing the current level and leveling up.
- car_manager.py -> This file creates so many cars while playing the game.
- main.py -> The main file orchestrates everything. When you run this file, it opens a window where you can play the game.
So we need to figure out how to exactly get the game set up and below is how we broke down the project:
- Move the turtle up with a specified keypress
- Create and move cars
- Detect collisions with cars and display a "GAME OVER"
- Detect completion of the game and start a new level
- Create a scoreboard.
- Run the
main.py
file. - Use the "Up" arrow key to move the player character upwards.
- Avoid getting hit by the cars moving across the road.
- Safely reach the other side of the road to score points.
- The game gets progressively harder as you advance levels.
- The game window is set up using the Turtle module.
- The player can move their character up using the "W" arrow key.
- Cars are generated and move from the right side of the screen to the left.
- Collision detection is used to determine if the player character collides with any cars.
- If the player reaches the other side safely, the level increases, making the game more challenging.