Skip to content

kilic-mustafa/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Description

A classic Snake game implemented in Python using the Turtle Graphics library. This game simulates the fundamental mechanics of the popular Snake game where you control a snake to collect food (yellow circle), grow longer, and avoid colliding with your own tail.

Features

  • Snake Movement: Control the snake using the arrow keys.
  • Growing Snake: The snake grows each time it eats the food.
  • Collision Detection: Game over if the snake collides with its own tail.
  • Score Tracking: Displays the current score and the highest score achieved.
  • Sound Effects: Includes sound effects for eating food and game-over scenarios.
  • Smooth Game Loop: The game loop updates the game state and renders the changes smoothly.

Screenshots

Ekran görüntüsü 2025-04-21 144528

Installation

  1. Clone this repository:
git clone https://github.com/kilic-mustafa/snake-game.git
  1. Navigate to the project directory:
cd snake-game
  1. Install required libraries:
pip install pygame
  1. Make sure you have the following audio files in the project directory:
- woosh.mp3 (sound effect for eating food)
- negative_action.mp3 (sound effect for collision with own tail)
- game_music.mp3 (background music)

How to Play

  • Use the arrow keys (Up, Down, Left, Right) to control the snake's movement.
  • The snake grows in length each time it eats the yellow food.
  • Avoid colliding with your own tail to keep playing.
  • The score is displayed at the top of the window, and the highest score is saved.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Snake game using Python and the Turtle module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages