Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 1563-Start Block Is Not Generated At The Top Left Of The Window #1566 #1567

3 changes: 2 additions & 1 deletion game/static/game/js/blocklyControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ ocargo.BlocklyControl.prototype.reset = function () {
// has a start button, if not then create a start button
if (!wasGameStarted(allBlocks)) {
let startBlock = this.createBlock("start");
startBlock.moveBy(30 + (i % 2) * 200, 30 + Math.floor(i / 2) * 100);
// Generate the first block on the (100, 100) position
startBlock.moveBy(100, 100);
}

this.clearIncorrectBlock();
Expand Down
Loading