From b0b7d89eb6973608b5ce16f62594a14825e921f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 12 Jan 2017 22:53:34 +0100 Subject: [PATCH] Added automatic scaling --- graphics/ui/battle.svg | 141 +---------------------------------------- out/index.html | 4 +- src/view/Boot.ts | 2 + 3 files changed, 7 insertions(+), 140 deletions(-) diff --git a/graphics/ui/battle.svg b/graphics/ui/battle.svg index 8aa0018..bd48597 100644 --- a/graphics/ui/battle.svg +++ b/graphics/ui/battle.svg @@ -19,30 +19,6 @@ sodipodi:docname="battle.svg"> - - - - - - - - @@ -258,39 +234,6 @@ result="composite2" id="feComposite6031-5" /> - - - - - image/svg+xml - + @@ -1611,84 +1554,6 @@ id="path4178" style="opacity:1;fill:#999999;fill-opacity:1;fill-rule:evenodd;stroke:#4f4f4f;stroke-width:3.5999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> - - - - PLAY ! - PLAY ! diff --git a/src/view/Boot.ts b/src/view/Boot.ts index 3df6de8..f48cf7b 100644 --- a/src/view/Boot.ts +++ b/src/view/Boot.ts @@ -1,7 +1,9 @@ module SpaceTac.View { export class Boot extends Phaser.State { preload() { + this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.game.stage.backgroundColor = 0x202020; + this.add.text(this.world.width / 2, this.world.height / 2 - 40, "... Loading ...", { align: "center", font: "bold 20px Arial", fill: "#c0c0c0" }) .anchor.set(0.5, 0.5);