Front : create class to connect, send and receive message

- Create environment class
 - Create Connexion class to connect and save data
 - Refactor back api
This commit is contained in:
gparant 2020-04-05 20:57:14 +02:00
parent b4f77ba51a
commit 7e08e7f133
8 changed files with 374 additions and 5 deletions

View file

@ -1,6 +1,7 @@
import 'phaser';
import GameConfig = Phaser.Types.Core.GameConfig;
import {GameScene} from "./GameScene";
import {Connexion} from "./Connexion";
const resolution = 2;
@ -18,3 +19,5 @@ 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");