0
我想做一個圓形移動並避免障礙物碰撞檢測。這是我的代碼。Python圈 - 移動並檢測障礙物(單獨移動,而不是箭頭)
from Tkinter import *
window = Tk()
canvas = Canvas(window,width=800, height=500, bg='pink')
canvas.pack()
finishline = canvas.create_oval(700, 300, 700+50, 300+50,fill='green')
robot = canvas.create_oval(20,200,20+45,200+45,fill='yellow')#(x1, y1, x2, y2)
ob1 = canvas.create_rectangle(200,400,200+50,200+1,fill='black')
canvas.update()
ob1 = canvas.create_rectangle(500,200,150+400,300+100,fill='blue')
canvas.update()
你的問題是什麼? – alex 2014-11-08 19:11:50
我想讓圈子移動並避免碰撞檢測障礙物。 – ujho 2014-11-08 19:15:23
請參閱[如何提出一個好問題](http://stackoverflow.com/help/how-to-ask) – alex 2014-11-08 22:16:30