rodolfo-santos / snake-game

A simple classic canvas game, snake!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake Game

This is a classic Snake game developed using HTML, CSS, and JavaScript. The objective of the game is to control the snake and eat apples to grow longer without colliding with the game boundaries or the snake's own body.

Snake Game banner

How to Play

  1. Access the game here or run the following commands in your terminal:
npm install
node server.js

This will start the game server on port 3000.

  1. Use the arrow keys to control the snake's direction: up arrow (↑) to move up, down arrow (↓) to move down, left arrow (←) to move left, and right arrow (→) to move right.
  2. The goal is to eat apples to increase your score and the snake's length. Avoid colliding with the game boundaries or the snake's body, as it will result in game over.
  3. You can restart the game at any time by clicking the "Restart" button.

Dependencies

The Snake game requires the following dependencies to be installed:

  • Node.js
  • npm (Node Package Manager)

Contributing

If you would like to contribute to this project, feel free to fork the repository and submit pull requests with improvements, bug fixes, or new features.

Resources

The Snake game utilizes the following technologies and resources:

  • HTML5
  • CSS3
  • JavaScript
  • Audio files for game sound effects

License

This project is licensed under the MIT License.

About

A simple classic canvas game, snake!


Languages

Language:HTML 97.0%Language:JavaScript 3.0%