Create webrtc connexion between two player
This commit is contained in:
parent
0f2e21e88e
commit
5b62ac39fb
13 changed files with 769 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
import {GameSceneInterface, GameScene} from "./GameScene";
|
||||
import {ROOM} from "../../Enum/EnvironmentVariable"
|
||||
import {Connexion, ConnexionInterface, ListMessageUserPositionInterface} from "../../Connexion";
|
||||
import {WebRtcEventManager} from "../../WebRtc/WebRtcEventManager";
|
||||
|
||||
export enum StatusGameManagerEnum {
|
||||
IN_PROGRESS = 1,
|
||||
|
@ -28,6 +29,8 @@ export class GameManager implements GameManagerInterface {
|
|||
return ConnexionInstance.createConnexion().then(() => {
|
||||
this.configureGame();
|
||||
/** TODO add loader in the page **/
|
||||
//initialise cam
|
||||
new WebRtcEventManager(ConnexionInstance);
|
||||
}).catch((err) => {
|
||||
console.error(err);
|
||||
throw err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue