TDDD96-PUM-Grupp1 / ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IoT Party UI

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 UI is to host an instance that a player can connect to. The instance then handles all the game related part of the project. This includes rendering the players, checking collisions and handling the Controller sensor data.

When creating an instance the host of the party can set it up by changing a few parameters. This includes the instance name, which gamemode is being played and how many players are allowed.

Browser Support

Most of the development was made using Google Chrome and Mozilla Firefox. As such we currently encourage the user to use one of these two browsers when running the game for the best experience. Other browsers might be supported but we have not gone out of our way to test them.

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 git@github.com:TDDD96-PUM-Grupp1/ui.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/ui.git
yarn

Now that you have the UI 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

License:MIT License


Languages

Language:JavaScript 97.5%Language:CSS 1.5%Language:HTML 0.9%