Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

I found out that I can't use AI to help me write the README and comment my code, so I removed everything written by AI from the repository.

Snake Game with Pixel-Art Apple

Welcome to the Snake Game project! This is a classic snake game built with Python and Pygame, featuring a pixel-art apple and support for both arrow keys and WASD controls .


Controls

You can control the snake using either the Arrow Keys or the WASD Keys.

How It Works

1. Snake Movement

  • The snake moves in a grid-like fashion, where each move corresponds to a fixed block size.
  • You control the snake's direction using the Arrow Keys or WASD Keys.

2. Win and Lose Conditions

  • Win Condition: The game ends with a victory message when the snake reaches a length of 20 blocks.
  • Lose Condition: The game ends with a game-over message if the snake collides with the wall.

3. Game Loop

  • The game continuously checks for user input (key presses) to change the snake's direction.
  • The snake is drawn on the screen with each frame, updating its position based on the direction it’s moving.
  • The game runs in a loop until the player either wins or loses.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages