This is a classic Snake game implemented in Node.js, designed to run on a Ubuntu virtual machine. The game leverages the simplicity and efficiency of Node.js for server-side logic while utilizing web technologies for the frontend.
- Responsive and intuitive controls for seamless gameplay.
- Score tracking to monitor your progress.
- Game over screen with the option to restart.
The project was created using:
- node v18.17.1
- npm 9.6.7
Node.js installed on your Ubuntu virtual machine. If not, you can download it here.
-
Clone this repository
git clone https://github.com/mateja-velickovic/nodejs-snakeGame.git
-
Navigate to the project directory
cd nodejs-snakeGame
-
Install dependecies
npm install
-
Run the game
npm run dev
-
Open your web browser and visit http://localhost:5173/ to play the Snake game.
Use arrow keys (Up, Down, Left, Right) to control the snake's direction.