Skip to content

chiragbhayal/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This repository contains a simple Snake Game built using Python and Pygame. The game features smooth gameplay with a graphical user interface, allowing players to control a snake that grows by eating apples.

Features

  • Classic Snake game mechanics
  • Uses Pygame for rendering
  • Background image for enhanced visuals
  • Apple spawning and collision detection
  • Game over and score tracking
  • Simple and intuitive controls
  • Dynamic difficulty adjustment
  • Sound effects for game events
  • High score tracking

Controls

  • Arrow keys: Move the snake up, down, left, or right
  • Enter (Return): Restart the game after a game-over
  • Escape: Exit the game
  • Spacebar: Pause/Resume the game

Files Overview

  • main.py: The main game logic
  • apple.jpg: Image of the apple
  • block.jpg: Image used for the snake
  • background.jpg: Background image
  • Requirements.txt: Required dependencies
  • LICENSE: Details about the project license
  • README.md: This documentation file

Future Enhancements

  • Adding multiple levels with increasing difficulty
  • Implementing multiplayer mode
  • Adding different types of power-ups
  • Online leaderboard integration

Demo

Check out my portfolio: My Portfolio

License

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

Author

Developed by Chirag Bhayal - GitHub Profile

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages