-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aded1a0
commit e330049
Showing
1 changed file
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
# Snake Game ๐๐ฎ | ||
|
||
Welcome to my Snake game! ๐ This project recreates the classic Snake game using HTML ๐, CSS ๐จ, and JavaScript ๐ป with the HTML5 canvas element ๐ผ๏ธ. | ||
|
||
# Snake Game ๐ | ||
## Features โจ | ||
|
||
Welcome to my Snake game! This project recreates the classic Snake game using HTML, CSS, and JavaScript with the HTML5 canvas element. | ||
- **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 ๐๐. | ||
|
||
## Features | ||
## How to Play ๐ฎ | ||
|
||
- **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. | ||
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 ๐งโ. | ||
|
||
## How to Play | ||
## Getting Started ๐ | ||
|
||
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. | ||
1. Clone the repository: `'https://github.com/nidhiupman568/SNAKE-GAME.git'` ๐๐ป | ||
2. Open the `index.html` file in your browser ๐. | ||
|
||
## Getting Started | ||
## Technologies Used ๐ ๏ธ | ||
|
||
1. Clone the repository:'https://github.com/nidhiupman568/SNAKE-GAME.git' | ||
2. Open the `index.html` file in your browser. | ||
- **HTML5** ๐ | ||
- **CSS3** ๐จ | ||
- **JavaScript** ๐ป | ||
|
||
## Technologies Used | ||
|
||
- **HTML5** | ||
- **CSS3** | ||
- **JavaScript** | ||
|
||
#### Screenshots(Output) | ||
#### Screenshots (Output) ๐ธ | ||
|
||
![SNAKE GAME](https://github.com/nidhiupman568/SNAKE-GAME/assets/130860182/f3aae81c-5b31-42d4-a6c2-3c398ae940ae) | ||
|