#this my SnkeGame
Snake Game includes unique obstacles that form the name "Hasan's Snake 🐍" within the game grid. This project demonstrates JavaScript skills with a focus on DOM manipulation, event handling, and basic game development concepts.
- Dynamic Gameplay: Control the snake using W, A, S, D keys and aim to consume food that randomly appears on the grid.
- Obstacles: Unique obstacles form the title of the game within the grid, adding an extra challenge.
- Score Tracking: Track your progress with an updated score displayed at the top of the game board.
- Game Over Message: If you collide with obstacles, walls, or yourself, the game ends and displays a message.
- Start the Game: Open the
index.htmlfile in a web browser. Press the SPACE key to start. - Controls: Use the following keys to control the snake:
- W: Move up
- S: Move down
- A: Move left
- D: Move right
- Objective: Eat as much food as possible to increase your score while avoiding walls, obstacles, and the snake’s own tail.
- Game Over: If the snake collides with an obstacle, wall, or itself, the game will end, and you can restart by pressing SPACE again.
- Clone the Repository:
git clone https://github.com/yourusername/hasan-snake-game.git
- Navigate to the Project Directory:
cd hasan-snake-game - Open
index.htmlin a Browser: Simply double-click theindex.htmlfile or open it with a web browser.