Skip to content

Dikshant1408/Python-Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game: The Classic Arcade Experience, Reimagined!

Get ready to slither into addictive fun with our enhanced Snake game! Relive the timeless arcade challenge with vibrant graphics, customizable skins, and exciting new features designed to keep you hooked.


About The Game

This isn't just any Snake game; it's a lovingly crafted tribute to the arcade classic, packed with modern polish. Guide your ever-growing snake across the screen, devouring delicious fruit to expand your length and boost your score. But watch out! Every bite makes you longer, and a single misstep into walls, obstacles, or even your own tail means game over.


Features

  • Timeless Gameplay, Polished: Experience the satisfying core mechanics of Snake that have captivated players for decades, now with smoother movement and a refined visual style.
  • Vibrant Visuals & Custom Skins: Choose from a variety of eye-catching snake skins and fruit designs to personalize your gameplay.
  • Dynamic Obstacles: As your score climbs, the challenge intensifies with dynamically spawning obstacles that demand quick reflexes and strategic thinking.
  • Exciting Power-Ups: Hunt down power-ups that appear randomly! Speed up for a frantic rush or slow down to navigate tricky situations.
  • Save & Load Your Progress: Pause your game at any time and save your progress to pick up exactly where you left off.
  • Compete for the High Score: Pit your skills against the best on the leaderboard.
  • Intuitive Controls: Easy-to-learn controls (Arrow Keys or WASD) mean you'll be slithering like a pro in no time.
  • Immersive Audio: Enjoy engaging background music and satisfying sound effects.

How to Play

Controls:

  • Movement: Use Arrow Keys (↑ ↓ ← →) or WASD (W A S D) to change the snake's direction.
  • Pause: Press P to pause and unpause the game.
  • Save Game: Press S during gameplay to save your current progress.
  • Load Game: Press L during gameplay to load your last saved game.
  • Exit to Menu: Press ESC at any time to return to the main menu.

Objective:

Eat as much fruit as possible to grow your snake and achieve the highest score without hitting walls, obstacles, or yourself! Collect power-ups for strategic advantages.


Installation & Running the Game

Download & Play the Executable (Windows)

For the easiest way to play without needing Python installed:

  1. Download the latest SnakeGame.zip from the Releases section of this repository. (You'll need to create a release on GitHub after packaging your executable).
  2. Extract the contents of the SnakeGame.zip file to a folder on your computer.
  3. Navigate into the extracted folder and double-click snake.exe to launch the game.

Run from Source (Requires Python)

If you prefer to run the game directly from the Python code:

  1. Clone this repository:
    git clone [https://github.com/YOUR_GITHUB_USERNAME/YOUR_REPO_NAME.git](https://github.com/YOUR_GITHUB_USERNAME/YOUR_REPO_NAME.git)
  2. Navigate to the project directory:
    cd YOUR_REPO_NAME
  3. Install Pygame: If you don't have Pygame installed, open your terminal or command prompt and run:
    pip install pygame
  4. Run the game:
    python snake.py

Project Structure

. ├── assets/ # Contains all game assets like sound files (background.mp3, eat.wav, game_over.wav) ├── snake.py # The main Python script containing all the game logic and code. ├── leaderboard.json # Automatically generated file that stores player high scores. ├── savegame.json # Automatically generated file that stores your saved game state. ├── snake_logo.ico # The icon used for the game's executable. ├── .gitignore # Specifies files and folders that Git should ignore (e.g., build/ and dist/ folders, Python cache files). ├── LICENSE # Details the project's licensing information (e.g., MIT License). └── README.md # This very file, providing an overview and instructions for the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors