Initial commit
This commit is contained in:
commit
26b8412f3c
13 changed files with 4146 additions and 0 deletions
16
front/src/index.ts
Normal file
16
front/src/index.ts
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue