Skip to content

Akshay7368/Turtle-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turtle-game

🐢 Turtle Crossing Game

A simple Python arcade-style game built using the turtle graphics module.
Inspired by the classic "Frogger" game, the player must help a turtle cross a busy road filled with moving cars without getting hit.


🎮 Game Features

  • Move the turtle up using the arrow key
  • Randomly generated cars with increasing speed
  • Level counter and scoreboard
  • Game Over screen if the turtle is hit

📁 Project Structure

turtle-crossing-start/ │ ├── car_manager.py # Handles car movement and generation ├── main.py # Main game loop ├── player.py # Player (turtle) control logic ├── scoreboard.py # Score tracking └── README.md # Project documentation

yaml Copy Edit


▶️ How to Run the Game

Prerequisites:

  • Python 3.x installed on your machine

Steps:

  1. Clone or download this repository
  2. Open a terminal and navigate to the folder
  3. Run:
    python main.py

🧠 What I Learned OOP in Python (classes, objects)

Using the turtle module for game development

Handling keyboard events

Creating clean code structure with multiple files

📸 Screenshots (Add screenshots here if you'd like)

🧑‍💻 Author Akshay Kumar S GitHub Profile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages