adding turtle examples (#598)
This commit is contained in:
23
docs/examples/turtle-scanner.md
Normal file
23
docs/examples/turtle-scanner.md
Normal file
@ -0,0 +1,23 @@
|
||||
# Turtle Scanner
|
||||
|
||||
The turtle keeps on the scanning the screen.
|
||||
|
||||
```blocks
|
||||
turtle.setPosition(0, 0)
|
||||
turtle.turnRight()
|
||||
turtle.setSpeed(20)
|
||||
basic.forever(() => {
|
||||
turtle.forward(4)
|
||||
turtle.turnRight()
|
||||
turtle.forward(1)
|
||||
turtle.turnRight()
|
||||
turtle.forward(4)
|
||||
turtle.turnLeft()
|
||||
turtle.forward(1)
|
||||
turtle.turnLeft()
|
||||
})
|
||||
```
|
||||
|
||||
```package
|
||||
microturtle=github:Microsoft/pxt-microturtle#master
|
||||
```
|
Reference in New Issue
Block a user