mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-25 07:22:33 -05:00
Merge pull request #402 from griffpatch/adjust-block-coordinate-calculation
Importers: adjust block coordinate calculation so blocks overlap less. #326
This commit is contained in:
commit
8989dd31ae
1 changed files with 2 additions and 2 deletions
|
@ -166,8 +166,8 @@ var parseScripts = function (scripts, blocks) {
|
||||||
// Adjust script coordinates to account for
|
// Adjust script coordinates to account for
|
||||||
// larger block size in scratch-blocks.
|
// larger block size in scratch-blocks.
|
||||||
// @todo: Determine more precisely the right formulas here.
|
// @todo: Determine more precisely the right formulas here.
|
||||||
parsedBlockList[0].x = scriptX * 1.1;
|
parsedBlockList[0].x = scriptX * 1.5;
|
||||||
parsedBlockList[0].y = scriptY * 1.1;
|
parsedBlockList[0].y = scriptY * 2.2;
|
||||||
parsedBlockList[0].topLevel = true;
|
parsedBlockList[0].topLevel = true;
|
||||||
parsedBlockList[0].parent = null;
|
parsedBlockList[0].parent = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue