@AdamBallard2/

GummyYoungToolbox

Python (with Turtle)

No description

fork
loading
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import turtle
turtle.color('blue')
turtle.pensize(3)
turtle.speed(200)
turtle.showturtle()
def ahead():
  turtle.forward(1)
def behind():
  turtle.backward(1)
def clockwise():
  turtle.right(1)
def counterclockwise():
  turtle.left(1)
def toggle_pen():
  if pen is up:
    turtle.pendown()
  if pen is down:
    turtle.penup()
turtle.Screen().onkey(ahead, "Up")
turtle.Screen().onkey(behind, "Down")
turtle.Screen().onkey(clockwise, "Right")
turtle.Screen().onkey(counterclockwise, "Left")
turtle.Screen() .onkey(toggle_pen, "spacebar")
turtle.Screen().listen()
result
console