Skip to content

Marat200118/Snake-game-webRTC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Snake Game Controller Application with Node.js, Express, and WebRTC

This repository contains the source code for a real-time game controller application built with Node.js, Express, and WebRTC. It demonstrates real-time communication between a server and clients, utilizing device orientation for control inputs and providing a visual feedback mechanism via a web interface.

User is able to control the snake in the game using either gyroscope controls or button controls. The game state and score are updated in real-time across all connected clients.

Features

  • Real-time control method selection (Gyroscope or Button controls).
  • Dynamic visual feedback for gyroscope controls using device orientation data.
  • Real-time score updates and game state management across clients.
  • Responsive design for both desktop and mobile devices.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (version 12.x or later recommended)
  • npm (normally comes with Node.js)

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/your-github-username/your-repository-name.git
  1. Navigate to the project root directory:
cd your-repository-name
  1. Install the project dependencies:
npm install

Running the Application

To run the application, execute the following command:

npm start

The application will be accessible at https://localhost:443 by default.

About

Devine - Creative Code 4 (WebRTC assignment)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published