Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/subhendu-kumar/snake-game
This is a classic Snake Game implemented using pure HTML, CSS, and JavaScript.
https://github.com/subhendu-kumar/snake-game
Last synced: about 1 month ago
JSON representation
This is a classic Snake Game implemented using pure HTML, CSS, and JavaScript.
- Host: GitHub
- URL: https://github.com/subhendu-kumar/snake-game
- Owner: Subhendu-Kumar
- Created: 2024-02-06T14:16:42.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-05T09:21:00.000Z (11 months ago)
- Last Synced: 2024-03-05T14:05:36.117Z (11 months ago)
- Language: JavaScript
- Homepage: https://snake-game-subhendu.netlify.app/
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#snakeGame
preview:
Link - [click here](https://snake-game-subhendu.netlify.app/)Snake Game :
-> This is a classic Snake Game implemented using pure HTML, CSS, and JavaScript. It's a simple yet addictive game where the player controls a snake to eat food and grow longer while avoiding collisions with itself and the boundaries of the game board.
Gameplay :
-> Objective: Guide the snake to eat food and grow longer without colliding with itself or the walls.
-> Controls: Use arrow keys to change the direction of the snake's movement.
-> Scoring: Each time the snake eats food, the score increases by one.
-> Game Over: The game ends if the snake collides with itself or the walls. The highest score achieved is displayed.Features :
-> Responsive Design: The game adapts to different screen sizes for a consistent experience across devices.
-> Audio Feedback: Sound effects are provided for eating food, moving the snake, and game over events.
-> Touch Support: Swipe gestures are supported for controlling the snake's movement on touch devices.How to Play :
-> Open the index.html file in a web browser.
-> Use the arrow keys to control the snake's movement.
-> Guide the snake to eat food and avoid collisions.
-> Try to achieve the highest score possible.Code Structure :
-> HTML (index.html): Contains the structure of the game board and score display.
-> CSS (style.css): Defines the styles for various elements of the game.
-> JavaScript (script.js): Implements the game logic, including snake movement, collision detection, scoring, and event handling.Touch Control :
-> For touch devices, swipe gestures can be used to control the snake's movement. Swiping horizontally changes the direction left or right, while swiping vertically changes the direction up or down.
Developed by: [Subhendu-Kumar]Dependencies :
-> No external libraries or frameworks are used in this project.
Compatibility :
-> Tested on modern web browsers such as Chrome, Firefox, and Safari. May not be compatible with older browsers.
License :
-> This project is open-source.