The purpose of this project is to reproduce and AirConsole, a console where the monitor is the laptop and the controllers are the smartphones of the players. The connection is made by QR code or by visiting the website and going on the controller page, then entering the ID of the room.
Run the following command to get your ip:
hostname -I
or
ip a #next to inet
create a .env with HOST_IP=your_ip and HOST_PORT with the port you want
then run:
docker compose build && docker compose up
then visit http://{your_ip}:HOST_PORT
I've used PixiReact, a modified version of Pixi.js to fit in react. You can add a game using the same framework or choose yours.
Create your game into the games folder, add the route into the main.tsx file, and connect it on the select menu in Play file
Etienne KRETZ: etienne.kretz@epitech.eu