Skip to content

Ein klassisches Snake-Spiel. Das Ziel ist, Essen zu fangen und dabei Hindernissen und Wänden auszuweichen, ohne sich selbst zu berühren.

Notifications You must be signed in to change notification settings

Hasan-Alawadi/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#this my SnkeGame

Hasan's Snake Game

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.

Features

  • 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.

How to Play

  1. Start the Game: Open the index.html file in a web browser. Press the SPACE key to start.
  2. Controls: Use the following keys to control the snake:
    • W: Move up
    • S: Move down
    • A: Move left
    • D: Move right
  3. Objective: Eat as much food as possible to increase your score while avoiding walls, obstacles, and the snake’s own tail.
  4. Game Over: If the snake collides with an obstacle, wall, or itself, the game will end, and you can restart by pressing SPACE again.

Installation

  1. Clone the Repository:
    git clone https://github.com/yourusername/hasan-snake-game.git
  2. Navigate to the Project Directory:
    cd hasan-snake-game
  3. Open index.html in a Browser: Simply double-click the index.html file or open it with a web browser.

About

Ein klassisches Snake-Spiel. Das Ziel ist, Essen zu fangen und dabei Hindernissen und Wänden auszuweichen, ohne sich selbst zu berühren.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages