Skip to content

HugosGitStuff/snake-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Attack

A fun and challenging snake game with multiple levels set in a desert theme.

Features

  • Beautiful desert-themed graphics
  • Multiple levels with increasing difficulty
  • Score tracking and high score system
  • Sound effects and background music
  • Smooth snake movement and animations
  • Two types of targets with different point values

Installation

  • Open VS Code
  • Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows)
  • Type "Python: Select Interpreter"
  • Choose the Python interpreter from your new venv folder
  • For future reference, whenever you clone this project to a new location:
  • Create a new virtual environment: python3 -m venv venv
  • Activate it: source venv/bin/activate (Mac/Linux) or .\venv\Scripts\activate (Windows)
  • Install requirements: pip3 install -r requirements.txt
  • Run the game: python3 main.py

How to Play

  1. Run the game:
    python main.py
  2. Press SPACE to start the game
  3. Use arrow keys to control the snake's direction
  4. Collect targets to grow and score points
  5. Avoid hitting walls and the snake's own body
  6. Try to beat your high score!

Controls

  • Arrow Up: Move snake up
  • Arrow Down: Move snake down
  • Arrow Left: Move snake left
  • Arrow Right: Move snake right
  • SPACE: Start game / Restart after game over

Configuration

The game settings can be modified in the config.json file:

  • Window size and FPS
  • Snake speed and initial length
  • Scoring system
  • Level configurations
  • And more!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages