Skip to content

TenathDilusha/Turtle-crossing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐢 Turtle Crossing Game

A fun Python game built using the turtle graphics module. Your goal is simple: help the turtle cross the road without getting hit by cars!

🚀 How to Play

Press "Up" Arrow to move the turtle upward Press "Down" Arrow to move downward Avoid the moving cars Each time you reach the top, you level up and car speed increases The game ends if the turtle collides with a car

🧠 Features

Smooth player movement Random car generation Increasing difficulty each level Scoreboard with current level Game over message Clean object-oriented design (OOP)

🛠 Requirements

Make sure you have Python 3.x installed. The game uses only built-in libraries:

  1. turtle
  2. time
  3. random No external dependencies are required.

▶️ How to Run

Open a terminal inside the project folder and run: python main.py

The game window will open instantly.

❤️ Credits Made with Python Turtle by Tenath Dilusha.

About

This is a game called "Turtle crossing" that is made by python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages