Initial commit

This commit is contained in:
David Négrier 2020-04-03 14:56:21 +02:00
commit 26b8412f3c
13 changed files with 4146 additions and 0 deletions

16
front/src/index.ts Normal file
View file

@ -0,0 +1,16 @@
import 'phaser';
import GameConfig = Phaser.Types.Core.GameConfig;
import {GameScene} from "./GameScene";
const resolution = 2;
const config: GameConfig = {
title: "Office game",
width: window.innerWidth / resolution,
height: window.innerHeight / resolution,
parent: "game",
scene: [GameScene],
zoom: resolution,
};
let game = new Phaser.Game(config);