Skip to content

A classic Snake game built using HTML, CSS, and JavaScript. Control a snake to eat apples and grow longer, while avoiding collision with itself or the game boundaries. Features score tracking, start/pause functionality, and a simple yet engaging gameplay experience.

Notifications You must be signed in to change notification settings

ImAbuSayed/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a simple Snake game built using HTML, CSS, and JavaScript.

Play the Game:

You can play the game directly in your browser by visiting: https://imabusayed.github.io/SnakeGame/

Features:

  • Classic Snake Gameplay: The player controls a snake that grows longer by eating apples. The game ends if the snake collides with itself or the boundaries of the game area.
  • Score Tracking: The game keeps track of the player's score based on the number of apples eaten.
  • Start/Pause: The game provides buttons to start a new game and pause the current game.

How to Play:

  1. Start Game: Click the "Start" button to begin.
  2. Control the Snake: Use the arrow keys (Up, Down, Left, Right) to move the snake.
  3. Eat Apples: Guide the snake to eat the red apples that appear on the game screen.
  4. Avoid Collision: The snake will die if it hits itself or the edges of the game area.

Code Structure:

  • HTML (index.html): Defines the game canvas, score display, and buttons.
  • CSS (style.css): Styles the game elements for visual appearance.
  • JavaScript (script.js): Contains the game logic, including snake movement, collision detection, apple generation, and score tracking.

Contribute:

Feel free to fork this repository and contribute to the project! Any improvements, bug fixes, or new features are welcome.

About the Developer:

I'm Abu Sayed, the developer of this game. I am passionate about web development and love creating fun and engaging projects.

Let me know if you have any questions or feedback!

About

A classic Snake game built using HTML, CSS, and JavaScript. Control a snake to eat apples and grow longer, while avoiding collision with itself or the game boundaries. Features score tracking, start/pause functionality, and a simple yet engaging gameplay experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published