Skip to content

Repository files navigation

4IT573_project

4IT573_project is a simple app, which uses web sockets and let player use its android mobile device gyroscope like a controller. The gameplay is seen on other device (like desktop or other mobile device)

Installation

Use the npm package manager.

npm install 

Usage

You need two devices: one with RelativeOrientationSensor support (Android + Chrome), second to view the platform (Desktop with powerful GPU for rendering)

To host app on 5000 port, use:

npm run start

To tunnel localhost outside, tool like ngrok can be used

ngok http 5000

Open the app on your mobile device first by navigating on connect page - .../connect. App will ask you to prompt player name and generate an ID for your room.

Next open the platform page on your desktop device and place your room id as query string (https://e2f3-89-176-163-95.eu.ngrok.io/platform?roomId=2765)

License

MIT

About

ThreeJS game where your smarthone gyroscope is used as controller to control the plane

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages