Initial commit
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user