Skip to content

pankajjoshi1005/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple and stylish Snake game that can be played in a web browser. The game is responsive and supports both mobile and desktop devices, with a full-screen mode feature.

Features

  • Classic Snake gameplay
  • Responsive design for mobile and desktop
  • Full-screen mode support
  • Simple and clean user interface

Project Structure

snake-game
├── src
│   ├── index.html        # Main HTML document
│   ├── styles
│   │   └── style.css     # Styles for the game
│   ├── scripts
│   │   └── game.js       # Game logic and functionality
│   └── assets            # Directory for images and additional assets
├── package.json          # npm configuration file
└── README.md             # Project documentation

Getting Started

To run the Snake game locally, follow these steps:

  1. Clone the repository:

    git clone <repository-url>
    
  2. Navigate to the project directory:

    cd snake-game
    
  3. Open the src/index.html file in your web browser.

Controls

  • Use the arrow keys to control the direction of the snake.
  • Press F11 to toggle full-screen mode.

License

This project is open-source and available on git.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published