Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.26 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.26 KB

Slither Snake Game

Overview

Slither Snake Game is a classic snake game built using HTML, CSS, and JavaScript. The objective of the game is to control the snake to eat food, grow longer, and avoid collisions with itself or the game boundaries. The game tracks the player's score and saves the highest score achieved using local storage.

Features

Interactive Gameplay: Control the snake using arrow keys to navigate and consume food.

Responsive Design: The game adapts to different screen sizes for a consistent user experience.

High Score Tracking: The highest score is saved and displayed using local storage.

Start Button: Initiate the game with a start button that hides after being clicked.

Utilized Technologies

HTML: For structuring the game layout.

CSS: For styling the game interface and ensuring responsiveness.

JavaScript: For implementing game logic, real-time updates, and handling user inputs.

Getting Started

Prerequisites

To run this game locally, you need a web browser that supports HTML, CSS, and JavaScript.

Installation

  1. Clone the repository to your local machine:

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

  1. Navigate to the project directory:

cd slither.snake.game

  1. To run the game:

python -m http.server