/multi-screen-interaction

🎮 Play a game cross screen.

Primary LanguageJavaScriptMIT LicenseMIT

multi-screen-interaction

🎮 Play a game cross screen.

Quick look

  • clone or download.
  • $ npm i.
  • $ npm run dev. And you will see Server 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.

Play

  • Touch on the mobile.
  • Game will start on the page.

How it works

  • In between the pc page and the mobile page, use socket to build communication.

License

MIT