An open API service indexing awesome lists of open source software.

https://github.com/mateja-velickovic/nodejs-snakegame

🐍 Famous snake game recreated on an Ubuntu environment
https://github.com/mateja-velickovic/nodejs-snakegame

javascript nodejs npm ubuntu virtualbox

Last synced: about 2 months ago
JSON representation

🐍 Famous snake game recreated on an Ubuntu environment

Awesome Lists containing this project

README

          

![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white)
![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white)
![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)
![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white)
![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)

Snake game

## Overview
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.

## Features
- Responsive and intuitive controls for seamless gameplay.
- Score tracking to monitor your progress.
- Game over screen with the option to restart.

## Technologies
The project was created using:

- node v18.17.1
- npm 9.6.7

## Setting up the environment
### Prerequisities
Node.js installed on your Ubuntu virtual machine. If not, you can download it [here](https://nodejs.org/en).

1. Clone this repository
```git clone https://github.com/mateja-velickovic/nodejs-snakeGame.git```

2. Navigate to the project directory
```cd nodejs-snakeGame```

3. Install dependecies
```npm install```

4. Run the game
```npm run dev```

5. Open your web browser and visit http://localhost:5173/ to play the Snake game.

## Controls
Use arrow keys (Up, Down, Left, Right) to control the snake's direction.