Skip to content

TDDD96-PUM-Grupp1/controller

Repository files navigation

IoT Party Controller

This project was carried out by eight students at Linköping University as a part of our Bachelor project and is Licensed under MIT.

The purpose of the controller is to move the users circle on the UI by tilting the phone (or using WASD on a computer). The current iteration supports multiple gamemodes including, Knock Off, Hockey and Pass The Bomb. The descriptions of these gamemodes can be read on the UI. In certain gamemodes the player also has access to certain abilities, in Knock Off the player can become super heavy for a short period of time to easier knock off opponents.

Most of the gamemodes are made to be free for all and therefor anyone can join at any point by connecting to the correct instance. Since it is also webbased the player doesn't need to download or run any application other than their browser.

Browser/Phone Support

Most of the development was made using the Chrome web browser for android phones. As such we currently encourage the user to use Chrome and android for the best experience. During the development we have also tried to support Mozilla Firefox as much as possible, but there are some things that are not supported.

Dependencies

In order to run the game for this project the user need four different repositories which are listed below:

  • Server - This runs the deepstream server that handles the network connections.
  • UI - This hosts the Javascript files for the UI.
  • Controller - This hosts the Javascript files for the Controller.
  • Services - This hosts services that handles all instances that are currently running, this makes it possible to run multiple instances of the UI.

The corresponing setup is described in their respective GitHub repositories.

Installation

The instructions will be using yarn as package manager. See npm vs yarn chear sheet for npm equivalents.

To download and install all the JavaScript packages run these commands in your prefered terminal:

git clone [email protected]:TDDD96-PUM-Grupp1/controller.git
yarn

If you cannot use ssh to clone the repository you can use the https command instead:

git clone https://github.com/TDDD96-PUM-Grupp1/controller.git
yarn

Now that you have the Controller and all the needed packages you can host the JavaScript files in a few ways depending on your use-case:

Server using Windows

This will host the JavaScript files and connect to a deepstream server at deepstream.<insert domain>

yarn start-pc

Locally using Windows

This will host the JavaScript files and connect to a deepstream server that is running locally within the network.

NOTE: This will only work if all the users are on the same network as the hosted files.

yarn start-pc-local

Server using Linux

This will host the JavaScript files, and connect to a deepstream server at deepstream.<insert domain>

yarn start

Locally using Linux

This will host the JavaScript files and connect to a deepstream server that is running locally within the network.

NOTE: This will only work if all the users are on the same network as the hosted files.

yarn start-local

Icons made by Lorc and Delapouite at http://game-icons.net.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published