Skip to content

xxx87/snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implementation in HTML, JavaScript, and Canvas.

Description

This is a simple implementation of the famous Snake game where the player controls a snake that moves around the screen. The goal is to eat apples to grow longer while avoiding collisions with the walls and the snake's own body.

Features

  • Smooth snake movement using JavaScript and Canvas
  • Score tracking
  • Game over detection (wall and self-collision)
  • Responsive controls using arrow keys
  • Simple and clean interface

How to Play

  1. Open the snakeGame.html file in your web browser
  2. Use the arrow keys to control the snake's direction
  3. Try to eat as many green apples as possible to increase your score
  4. Avoid hitting the walls or the snake's own body
  5. The game ends when the snake collides with a wall or itself

Technologies Used

  • HTML5
  • JavaScript
  • Canvas API
  • jQuery

Preview

The game displays the score in the top-left corner and shows a "Game Over" message when the game ends.

About

Famous Snake Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages