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.
- 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.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
- Clone the repository to your local machine:
git clone https://github.com/your-github-username/your-repository-name.git
- Navigate to the project root directory:
cd your-repository-name
- Install the project dependencies:
npm install
To run the application, execute the following command:
npm start
The application will be accessible at https://localhost:443
by default.