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
- Host: GitHub
- URL: https://github.com/mateja-velickovic/nodejs-snakegame
- Owner: mateja-velickovic
- Created: 2023-11-07T11:59:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T15:33:56.000Z (over 2 years ago)
- Last Synced: 2025-02-23T14:32:26.025Z (over 1 year ago)
- Topics: javascript, nodejs, npm, ubuntu, virtualbox
- Language: CSS
- Homepage:
- Size: 1.96 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README





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