(This is part of ENTANEER FRESTIVAL #1: CINEMANEER booth)
This repository contains 4 part.
- E-11: Gun model. Thanks to mh319 for models
- gun: Program for guns.
- target: Program for target.
- server: Websocket protocol to communicate with gun,target and server.
- Config the network at
DEFINE.h
in gun and target - Start the server
cd ./server/ && pnpm dev
- Start the devices.
- Connect to
2.
's server using websocket. (example. PieSocket Websocket)
- From 4. above, send "WEB" after server ask for TYPE to gain control (The ser will answer "WEB ACCEPTED")
- Send "START" to start the game.
- Send "STOP" to stop the game.
Each score gain will send to WEB clients in format {score: n} which n is current score. Score reset each "START".
- Aim at the green light.
- Shoot to gain 1 score.
- Repeat.