for (var count = 0; count < 4; count++) { moveForward(100); turnRight(90); }
for (var count = 0; count < 5; count++) { moveForward(100); turnRight(72); }
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(100); turnRight(144); }
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); moveForward(20);
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); turnRight(90); moveForward(50); for (var count2 = 0; count2 < 4; count2++) { turnRight(144); moveForward(50); } turnRight(144); penUp(); moveForward(150); penDown(); turnRight(90); moveForward(50); for (var count3 = 0; count3 < 4; count3++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); penDown(); turnRight(90); moveForward(50); for (var count4 = 0; count4 < 4; count4++) { turnRight(144); moveForward(50); }
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); turnRight(120); moveForward(50); for (var count2 = 0; count2 < 4; count2++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); turnRight(120); penDown(); moveForward(50); for (var count3 = 0; count3 < 4; count3++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); for (var count5 = 0; count5 < 5; count5++) { for (var count4 = 0; count4 < 5; count4++) { turnRight(1); } } for (var count6 = 0; count6 < 5; count6++) { turnRight(1); } moveForward(100); penDown(); penColour('#ffffff'); moveForward(50);
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); turnRight(120); moveForward(50); for (var count2 = 0; count2 < 4; count2++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); turnRight(120); penDown(); moveForward(50); for (var count3 = 0; count3 < 4; count3++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); for (var count5 = 0; count5 < 5; count5++) { for (var count4 = 0; count4 < 5; count4++) { turnRight(1); } } for (var count6 = 0; count6 < 5; count6++) { turnRight(1); } moveForward(100); penDown(); penColour('#ffffff'); for (var count7 = 0; count7 < 4; count7++) { moveForward(50); moveBackward(50); turnRight(45); }
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); turnRight(120); moveForward(50); for (var count2 = 0; count2 < 4; count2++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); turnRight(120); penDown(); moveForward(50); for (var count3 = 0; count3 < 4; count3++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); for (var count5 = 0; count5 < 5; count5++) { for (var count4 = 0; count4 < 5; count4++) { turnRight(1); } } for (var count6 = 0; count6 < 5; count6++) { turnRight(1); } moveForward(100); penDown(); penColour('#ffffff'); for (var count7 = 0; count7 < 360; count7++) { moveForward(50); moveBackward(50); turnRight(1); }
penColour('#ffff00'); for (var count = 0; count < 5; count++) { moveForward(50); turnRight(144); } penUp(); moveForward(150); penDown(); turnRight(120); moveForward(50); for (var count2 = 0; count2 < 4; count2++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); turnRight(120); penDown(); moveForward(50); for (var count3 = 0; count3 < 4; count3++) { turnRight(144); moveForward(50); } penUp(); turnRight(144); moveForward(150); for (var count5 = 0; count5 < 5; count5++) { for (var count4 = 0; count4 < 5; count4++) { turnRight(1); } } for (var count6 = 0; count6 < 5; count6++) { turnRight(1); } moveForward(100); penDown(); penColour('#ffffff'); for (var count7 = 0; count7 < 360; count7++) { moveForward(50); moveBackward(50); turnRight(1); } turnRight(120); moveForward(20); penColour('#000000'); for (var count8 = 0; count8 < 360; count8++) { moveForward(50); moveBackward(50); turnRight(1); }
https://blockly-games.appspot.com/turtle?lang=es&level=10#qaifhx
revisado 17 de mayo 2016
ResponderEliminar