Code Sketch


truck road
By: chinar
cleari()
setSpeed(superFast)

setPosition(-300,-190)
setFillColor(Color(25, 195, 25))

repeat(4){
    forward(400)
    right()
    forward(600)
 right()
}
setFillColor(black)
setPosition(-100,-190)
right(10)
forward(407)
turnEast();forward(100)
right(80);forward(407)
turnWest();forward(240)
hop(-110)
right();hop(50)
setFillColor(white)
repeat(4){
    forward(70)
    right()
    forward(20)
    right()
}
hop(140)
repeat(4){
    forward(50)
    right()
    forward(15)
    right()
}
hop(100)
repeat(4){
    forward(40)
    right()
    forward(13)
    right()
}
hop(80)
repeat(4){
    forward(20)
    right()
    forward(7)
    right()
}

setPosition(-290,-170)
def building(){
    setFillColor(Color(187, 123, 22))
    repeat(2){
    forward(350)
    right()
    forward(100)
    right()
    }
}
building()
def sheild(){
setFillColor(noColor)
right(45);forward(70);right();forward(70);hop(-70);turnNorth()
forward(250);right(45);forward(70);hop(-70);left();forward(70)
}
sheild()

val t1 = newTurtle(-190,-170)
t1.turnEast()
t1.setFillColor(Color(128, 128, 128, 226))
t1.left(20)
t1.forward(30)
t1.turnNorth()
t1.right(45)
repeat(23){
    t1.right(45)
t1.left(90,10)
t1.turnNorth()
}
t1.left(64)
t1.forward(43)

val t2 = newTurtle(-150,-30)
t2.setPenColor(black)
t2.setFillColor(black)
t2.turnEast()
t2.hop(3)
t2.forward(80)
t2.left(80)
t2.forward(35)
t2.turnWest()
t2.forward(88)
t2.turnSouth()
t2.left(25)
t2.right(90,10)
t2.left(125)
t2.right(90,10)
t2.left(25)
t2.right(90,2)
val t3 = newTurtle(-50,-100)


t3.setFillColor(blue)
repeat(4){
    t3.forward(40)
    t3.right()
}
t3.hop(40)
t3.right(20)
t3.forward(30)
t3.turnEast()
t3.forward(15)
t3.right(62)
t3.forward(30)

t3.setFillColor(cyan)
t3.turnWest()
t3.hop(5)

    t3.forward(30)
    t3.right(110)
    t3.forward(10)
    t3.right(70)
    t3.forward(20)
    t3.right(60)
   t3.forward(10)
   t3.turnNorth()