RAHH

Anonymous
plain_text
05/24/2024 2:28 PM
756 B
17
Indexable
#This list will hold all the new directional values for the redraw
direction_list= []

#This function will append move up
def move_up(): 
    seth(90)
    forward(10)
    direction_list.append("up")

#This function will append move down    
def move_down(): 
    seth(270)
    forward(10)
    direcrion_list.append("down")

#This function will append move left    
def move_left(): 
    seth(180)
    forward(10)
    direction_list.append("left")

#This function will append move right
def move_right(): 
    seth(0)
    forward(10)
    direction_list.append("right")
Editor is loading...
Leave a Comment