Skip to content

Aneesh-trisal/snake-game-using-python-tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Snake Game - Python (Tkinter + Pygame)

A simple and fun Snake Game built with Python using Tkinter for the GUI and Pygame for sound effects.


πŸ“Œ Overview

  • Classic snake game with a modern Python twist.
  • Real-time keyboard controls (arrow keys).
  • Random food spawning and score tracking.
  • Sound effects for food and game over events.
  • Restart option after game over.

βš™οΈ Requirements

  • Python 3.x
  • Libraries:
    • pygame
    • Pillow
    • tkinter (usually comes pre-installed with Python)

Install dependencies:

pip install pygame Pillow

Ensure the following files are in the same directory:
-snake game.py
-game_point.mp3 (sound for eating food)
-game_over.mp3 (sound for game over)

Controls
-↑ Arrow Up - Move Up
-↓ Arrow Down - Move Down
-← Arrow Left - Move Left
-β†’ Arrow Right - Move Right
-Restart Button appears after Game Over

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages