Skip to content

Instantly share code, notes, and snippets.

@a1ip
Last active August 4, 2020 23:10
Show Gist options
  • Save a1ip/f85f4a268545c95b0608fddfc516874d to your computer and use it in GitHub Desktop.
Save a1ip/f85f4a268545c95b0608fddfc516874d to your computer and use it in GitHub Desktop.
Решения для обучающей игры Blockly «Фильм» 🎬 https://git.io/blockly-movie Остальные игры: https://git.io/blockly

Blockly Games logo

Лого игры Blockly «Лабиринт»

penColour('#ff0000');
circle(50, 70, 10);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#999999');
line(60, 50, 80, 70, 5);
line(40, 50, 20, 70, 5);

penColour('#ff0000');
circle(50, 70, 10);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#999999');
line(60, 50, 80, time(), 5);
line(40, 50, 20, 70, 5);

penColour('#ff0000');
circle(50, 70, 10);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#999999');
line(60, 50, 80, time(), 5);
line(40, 50, 20, 100 - time(), 5);

penColour('#ff0000');
circle(50, 70, 10);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#999999');
line(60, 50, 80, time(), 5);
line(40, 50, 20, 100 - time(), 5);
line(40, 20, time(), 0, 5);
line(60, 20, 100 - time(), 0, 5);

penColour('#ff0000');
circle(50, 70, 10);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
line(40, 20, time(), 0, 5);
line(60, 20, 100 - time(), 0, 5);

penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#ff0000');
circle(50, 70, 10);
circle(20, 100 - time(), 5);
circle(80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
line(40, 20, time(), 0, 5);
line(60, 20, 100 - time(), 0, 5);

penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#ff0000');
if (time() < 50) {
  circle(50, 70, 10);
} else {
  circle(50, 80, 20);
}
circle(20, 100 - time(), 5);
circle(80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
line(40, 20, time(), 0, 5);
line(60, 20, 100 - time(), 0, 5);

penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#ff0000');
if (time() < 50) {
  circle(50, 70, 10);
} else {
  circle(50, 80, 20);
}
circle(20, 100 - time(), 5);
circle(80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
if (time() < 50) {
  line(40, 20, time(), 0, 5);
  line(60, 20, 100 - time(), 0, 5);
} else {
  line(40, 20, 100 - time(), 0, 5);
  line(60, 20, time(), 0, 5);
}

penColour('#009900');
circle(50, time() / 2, time() / 2);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#ff0000');
if (time() < 50) {
  circle(50, 70, 10);
} else {
  circle(50, 80, 20);
}
circle(20, 100 - time(), 5);
circle(80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
if (time() < 50) {
  line(40, 20, time(), 0, 5);
  line(60, 20, 100 - time(), 0, 5);
} else {
  line(40, 20, 100 - time(), 0, 5);
  line(60, 20, time(), 0, 5);
}

penColour('#009900');
circle(50, time() / 2, time() / 2);
penColour('#3333ff');
rect(50, 40, 20, 40);
penColour('#ff0000');
circle(50, 70 + time() / 10, 10 + time() / 10);
circle(20, 100 - time(), 5);
circle(80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
penColour('#999999');
line(60, 50, 80, ((time() - 50) / 5) * ((time() - 50) / 5), 5);
line(40, 50, 20, 100 - time(), 5);
if (time() < 50) {
  line(40, 20, time(), 0, 5);
  line(60, 20, 100 - time(), 0, 5);
} else {
  line(40, 20, 100 - time(), 0, 5);
  line(60, 20, time(), 0, 5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment