1
0
Fork 0
spacetac/src/scripts/GameRouter.ts

20 lines
510 B
TypeScript
Raw Normal View History

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-18 00:00:00 +00:00
super(1280, 720, 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');
}
}
}