2014-12-29 00:00:00 +00:00
|
|
|
/// <reference path="definitions/phaser.d.ts"/>
|
|
|
|
|
|
|
|
module SpaceTac {
|
2015-01-07 00:00:00 +00:00
|
|
|
"use strict";
|
|
|
|
|
2014-12-29 00:00:00 +00:00
|
|
|
// Router between game views
|
|
|
|
export class GameRouter extends Phaser.Game {
|
|
|
|
constructor() {
|
2015-01-09 00:00:00 +00:00
|
|
|
super(800, 600, Phaser.AUTO, '-space-tac');
|
2014-12-29 00:00:00 +00:00
|
|
|
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|