https://github.com/nidhiupman568/snake-game
๐Welcome to my Snake game! ๐ This project recreates the classic Snake game using HTML ๐, CSS ๐จ, and JavaScript ๐ป with the HTML5 canvas element ๐ผ๏ธ.
https://github.com/nidhiupman568/snake-game
css front-end-development html interactive-web-design javascript snake-game web-animation web-development
Last synced: about 1 month ago
JSON representation
๐Welcome to my Snake game! ๐ This project recreates the classic Snake game using HTML ๐, CSS ๐จ, and JavaScript ๐ป with the HTML5 canvas element ๐ผ๏ธ.
- Host: GitHub
- URL: https://github.com/nidhiupman568/snake-game
- Owner: nidhiupman568
- Created: 2024-06-06T21:39:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T20:14:21.000Z (6 months ago)
- Last Synced: 2024-11-11T16:27:03.950Z (3 months ago)
- Topics: css, front-end-development, html, interactive-web-design, javascript, snake-game, web-animation, web-development
- Language: JavaScript
- Homepage: https://snake-game-nidhiupman.vercel.app/
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snake Game ๐๐ฎ
Welcome to my Snake game! ๐ This project recreates the classic Snake game using HTML ๐, CSS ๐จ, and JavaScript ๐ป with the HTML5 canvas element ๐ผ๏ธ.
Project Demo: https://nidhiupman568.github.io/SNAKE-GAME/
## Features โจ
- **Canvas Display**: Utilizes HTML5 canvas for rendering the game graphics ๐จ๐ผ๏ธ.
- **Game Loop**: Implements a smooth game loop for continuous gameplay ๐๐ฎ.
- **Keyboard Controls**: Listens for arrow key presses to control the snake's movement โจ๏ธโฌ๏ธโฌ๏ธโฌ ๏ธโก๏ธ.
- **Segment Management**: Uses an array to manage and grow the snake's body segments ๐โ.
- **Collision Detection**: Checks for collisions with itself and boundaries to trigger game over ๐ง๐ฅ.
- **Score Tracking**: Keeps track of the player's score as they collect food items ๐๐.## How to Play ๐ฎ
1. **Start the Game**: Open `index.html` in your browser ๐.
2. **Move**: Use arrow keys to navigate the snake โฌ ๏ธโฌ๏ธโฌ๏ธโก๏ธ.
3. **Collect Food**: Eat food items to grow the snake and increase your score ๐๐๐.
4. **Avoid Collisions**: Don't run into walls or your own tail to avoid game over ๐งโ.## Getting Started ๐
1. Clone the repository: `'https://github.com/nidhiupman568/SNAKE-GAME.git'` ๐๐ป
2. Open the `index.html` file in your browser ๐.## Technologies Used ๐ ๏ธ
- **HTML5** ๐
- **CSS3** ๐จ
- **JavaScript** ๐ป#### Screenshots (Output) ๐ธ
