mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 15:41:37 +00:00
13 lines
473 B
JavaScript
13 lines
473 B
JavaScript
/// <reference path="phaser.d.ts" />
|
|
/// <reference path="Boot.ts" />
|
|
/// <reference path="Preloader.ts" />
|
|
/// <reference path="MainMenu.ts" />
|
|
window.onload = function () {
|
|
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'gameContainer', null, false, false);
|
|
|
|
game.state.add("Boot", BasicGame.Boot, false);
|
|
game.state.add("Preloader", BasicGame.Preloader, false);
|
|
game.state.add("MainMenu", BasicGame.MainMenu, false);
|
|
|
|
game.state.start("Boot");
|
|
};
|