Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

WTC-Hive/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 

Repository files navigation

Snake Game in Python (Pygame)

A classic Snake game built using Python and Pygame. This version is optimized for mobile devices, allowing users to play on their phones.

Features

โœ… Classic snake gameplay โœ… Simple touch controls for mobile compatibility โœ… Increasing difficulty as the snake grows โœ… Score tracking โœ… Smooth animations with Pygame โœ… Works on Android and iOS (via Pygame for mobile deployment)

Tech Stack

  • Language: Python
  • Game Library: Pygame
  • Mobile Deployment: Kivy/Pyqt (optional) or Pygame Subset for Android (pgs4a)

Installation

1. Clone the Repository

git clone https://github.com/yourusername/snake-game.git
cd snake-game

2. Create a Virtual Environment

python -m venv env
source env/bin/activate  # On Windows use: env\Scripts\activate

3. Install Dependencies

pip install pygame

4. Run the Game on PC

python snake.py

Mobile Deployment (Android)

To run the game on an Android device, follow these steps:

  1. Install Pygame Subset for Android (pgs4a)
  2. Package the game using:
    pgs4a build snake.py
  3. Install the generated APK on your phone.

For iOS, consider using Kivy for mobile-friendly deployment.

Controls

๐Ÿ“ฑ Swipe gestures (if using Kivy) or on-screen buttons for mobile ๐ŸŽฎ Arrow keys for PC


Enjoy playing Snake! ๐Ÿ๐ŸŽฎ

About

This is a classic Snake Game built using Python and powered by Flet, allowing it to run seamlessly in a web browser! ๐Ÿš€ The game brings a modern, responsive, and interactive experience while maintaining the nostalgic charm of the original Snake game. ๐Ÿ•น๏ธ

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors