20 lines
510 B
TypeScript
20 lines
510 B
TypeScript
/// <reference path="definitions/phaser.d.ts"/>
|
|
|
|
module SpaceTac {
|
|
"use strict";
|
|
|
|
// Router between game views
|
|
export class GameRouter extends Phaser.Game {
|
|
constructor() {
|
|
super(1280, 720, Phaser.AUTO, '-space-tac');
|
|
|
|
this.state.add('boot', View.Boot);
|
|
this.state.add('preload', View.Preload);
|
|
this.state.add('main', View.Main);
|
|
this.state.add('battle', View.BattleView);
|
|
|
|
this.state.start('boot');
|
|
}
|
|
}
|
|
}
|