Refactor to include connexion
This commit is contained in:
parent
5d463d097a
commit
bac1e804ad
8 changed files with 88 additions and 24 deletions
|
@ -1,15 +1,16 @@
|
|||
import 'phaser';
|
||||
import GameConfig = Phaser.Types.Core.GameConfig;
|
||||
import {GameScene} from "./Phaser/GameScene";
|
||||
import {Connexion} from "./Connexion";
|
||||
import {GameManager} from "./Phaser/Game/GameManager";
|
||||
import {RESOLUTION} from "./Enum/EnvironmentVariable";
|
||||
|
||||
let gameManager = new GameManager();
|
||||
|
||||
const config: GameConfig = {
|
||||
title: "Office game",
|
||||
width: window.innerWidth / RESOLUTION,
|
||||
height: window.innerHeight / RESOLUTION,
|
||||
parent: "game",
|
||||
scene: [GameScene],
|
||||
scene: gameManager.GameScenes,
|
||||
zoom: RESOLUTION,
|
||||
};
|
||||
|
||||
|
@ -18,5 +19,3 @@ let game = new Phaser.Game(config);
|
|||
window.addEventListener('resize', function (event) {
|
||||
game.scale.resize(window.innerWidth / RESOLUTION, window.innerHeight / RESOLUTION);
|
||||
});
|
||||
|
||||
const connexion = new Connexion("test@gmail.com");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue