Skip to content

An engaging game where players control a turtle attempting to cross a busy road while avoiding moving cars. The game increases in difficulty as players progress, with cars becoming faster. It includes a scoreboard to track player levels and collisions that reset the game.

Notifications You must be signed in to change notification settings

harishrajT/turtle-crossing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turtle Crossing Game

This is a simple Turtle Crossing game built using Python's Turtle graphics library. The goal is to move the turtle from the bottom to the top of the screen without being hit by the moving cars.

Features

  • Player Movement:

    • The player (turtle) can move up by pressing the "Up" arrow key.
    • Once the player reaches the top, they move to the next level, and the game gets faster.
  • Car Manager:

    • Randomly generated cars move horizontally across the screen.
    • Cars increase in speed with each level.
  • Scoreboard:

    • Displays the current level on the screen.
    • Shows a "Game Over" message when the player collides with a car.

Requirements

  • Python 3.x
  • Turtle graphics library (pre-installed with Python)

How to Run

  1. Clone the repository or download the code files.
  2. Run the turtle_crossing.py script using Python:
    python turtle_crossing.py

About

An engaging game where players control a turtle attempting to cross a busy road while avoiding moving cars. The game increases in difficulty as players progress, with cars becoming faster. It includes a scoreboard to track player levels and collisions that reset the game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages