Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- y = 0
- x = 0
- function x_calc(move_x, Feldgrenze_x)
- if move_x < x and move_x >= 0 and move_x <= Feldgrenze_x then
- turtle.turnLeft()
- x = x - move_x
- else if move_x > x and move_x >= 0 and move_x <= Feldgrenze_x then
- turtle.turnRight()
- x = move_x - x
- else if move_x == x then
- else
- print("Fehlerhafte Eingabe!")
- turtle.turnLeft()
- for i = 0, x, 1 do
- turtle.forward()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement