🎮 Play a game cross screen.
clone
ordownload
.$ npm i
.$ npm run dev
. And you will seeServer run successfully!
. Server listens on 8081.- Open
http://0.0.0.0:8080/_index.html
. Now, you created a host, and you can see the uid in terminal. - Use your mobile device scan the QR code on the top left of the page. Make sure your device and your computer in the same local area network. So that your mobile join the game of this page.
- Touch on the mobile.
- Game will start on the page.
- In between the pc page and the mobile page, use socket to build communication.
MIT