From d4a2ee2f45f6bcc731cbe128d6b35ea8eaef7419 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sat, 20 Feb 2021 19:05:31 -0600 Subject: [PATCH] Allow changing stage size and hiding controls --- index.html | 14 ++++++++++++++ packager.js | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 4a167b0..8efd02e 100644 --- a/index.html +++ b/index.html @@ -195,6 +195,18 @@ along with this program. If not, see . +
+ Stage size + + × + +
+
+ +
TurboWarp will automatically connect to its cloud variable server if packaging a project from an ID.
@@ -359,6 +371,8 @@ along with this program. If not, see . highQualityPen: O.turbowarp.highQualityPen, turbo: O.turbowarp.turbo, username: O.turbowarp.username, + stageSize: O.turbowarp.stageSize, + noControls: O.turbowarp.noControls }); }; diff --git a/packager.js b/packager.js index 95858b4..e7a3555 100644 --- a/packager.js +++ b/packager.js @@ -234,9 +234,9 @@ window.Packager = (function() { if (${stringify(this.options.highQualityPen)}) vm.renderer.setUseHighQualityRender(true); if (${stringify(this.options.turbo)}) vm.setTurboMode(true); }, - stageWidth: 480, // TODO - stageHeight: 360, // TODO - noControls: false, // TODO + stageWidth: ${stringify(this.options.stageSize.width)}, + stageHeight: ${stringify(this.options.stageSize.height)}, + noControls: ${stringify(this.options.noControls)}, };