--- upstream/index.html +++ browser/index.html @@ -2,8 +2,8 @@ Rapid Dominance - - + +
--- upstream/src/welcomeScene.ts +++ local/src/welcomeScene.ts @@ -27,7 +27,20 @@ numberOfPlayersDropdown: Phaser.GameObjects.Container selectedModeLabel: Phaser.GameObjects.Container - gameMaps: GameMaps[] = [ + gameMaps: GameMaps[]; + + gameModes: GameMode[] = [deathmatch, t2p2, t3p2, t4p2, t5p2, t6p2, t7p2, t8p2, t3p3, t4p4] + + + constructor() { + super({ + key: "WelcomeScene" + }); + } + + preload(): void { + // Camera plugins are available after the scene boots. + this.gameMaps = [ { mapName: 'One vs one', id: 'one_vs_one', maxPlayers: 2 }, { mapName: 'Eagles Nest', id: 'eagles_nest', maxPlayers: 4 }, { mapName: 'Eight', id: 'eight', maxPlayers: 8 }, @@ -35,17 +48,6 @@ { mapName: 'Middle wall', id: 'middle_wall', maxPlayers: (this.cameras.main.width * 0.015, this.cameras.main.height * 0.02) }, { mapName: 'Hex', id: 'hex', maxPlayers: (this.cameras.main.width * 0.02, this.cameras.main.height * 0.02666666666666667) }, { mapName: 'Stone', id: 'stones', maxPlayers: (this.cameras.main.width * 0.02, this.cameras.main.height * 0.02666666666666667) }]; - - gameModes: GameMode[] = [deathmatch, t2p2, t3p2, t4p2, t5p2, t6p2, t7p2, t8p2, t3p3, t4p4] - - - constructor() { - super({ - key: "WelcomeScene" - }); - } - - preload(): void { this.load.setBaseURL("."); this.load.image("menu_item", "assets/buttonLong_brown.png"); this.load.image("background", "assets/backgroundColorDesert.png");