Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhiupman568 authored Jun 14, 2024
1 parent aded1a0 commit e330049
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions README.md
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)

0 comments on commit e330049

Please sign in to comment.