From 2ac4b73a1f966d74a9328299a85908978a4419e2 Mon Sep 17 00:00:00 2001 From: griffpatch Date: Fri, 27 Jan 2017 10:16:19 +0000 Subject: [PATCH] Importers: adjust block coordinate calculation so blocks overlap less. #326 This change imports the scratch blocks much closer to the Scratch 2 spacing. --- src/import/sb2import.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/sb2import.js b/src/import/sb2import.js index 92600ed65..96009abb8 100644 --- a/src/import/sb2import.js +++ b/src/import/sb2import.js @@ -166,8 +166,8 @@ var parseScripts = function (scripts, blocks) { // Adjust script coordinates to account for // larger block size in scratch-blocks. // @todo: Determine more precisely the right formulas here. - parsedBlockList[0].x = scriptX * 1.1; - parsedBlockList[0].y = scriptY * 1.1; + parsedBlockList[0].x = scriptX * 1.5; + parsedBlockList[0].y = scriptY * 2.2; parsedBlockList[0].topLevel = true; parsedBlockList[0].parent = null; }