Skip to content

NeNish/Turtle-crossing-game-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐢 Turtle Crossing Game

A fun arcade-style game inspired by Frogger, built using Python's turtle module. Your mission is to help the turtle cross the road full of moving cars without getting hit!

Turtle Crossing Demo


🎮 Gameplay

  • Control the turtle to move upwards using the arrow key.
  • Avoid getting hit by cars that speed across the screen.
  • Each level increases difficulty by speeding up the cars.
  • Reach the top safely to level up!

🛠️ Built With

  • 🐍 Python 3.x
  • 🐢 turtle module (standard Python graphics)

🚀 Getting Started

✅ Prerequisites

  • Python 3.x installed on your system

▶️ How to Run

git clone https://github.com/your-username/turtle-crossing-game.git
cd turtle-crossing-game
python main.py

No additional packages are required — everything runs using Python's built-in turtle module.


🕹️ Controls

  • Up Arrow — Move the turtle forward

📁 Project Structure

turtle-crossing-game/
├── main.py             # Main game loop
├── player.py           # Turtle player class
├── car_manager.py      # Car generation and movement logic
├── scoreboard.py       # Level tracking and display

✨ Features

  • Progressive levels with increasing difficulty
  • Dynamic car spawning and movement
  • Score tracking with level display
  • Collision detection
  • Object-oriented design with separate modules

🧠 Concepts Practiced

  • Object-Oriented Programming (OOP)
  • Class inheritance and composition
  • Animation with turtle
  • Event listeners and game loops

🙋‍♂️ Author

Developed by E S Nishant (https://github.com/NeNish)


⭐️ Show Your Support

Give a ⭐️ if you liked this project or fork it to make it your own!


Happy Coding 🐢



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages