我有從屏幕結尾到另一個的精靈,但現在我希望它永遠地來回移動。有任何想法嗎?在pygame中移動一個雪碧
u = 1 #u is the x coordinate
if u < 430: #480 is the window siz, i want it to stop at 430
u += 5 # Move up by 5
我應該添加整個代碼嗎?
我有從屏幕結尾到另一個的精靈,但現在我希望它永遠地來回移動。有任何想法嗎?在pygame中移動一個雪碧
u = 1 #u is the x coordinate
if u < 430: #480 is the window siz, i want it to stop at 430
u += 5 # Move up by 5
我應該添加整個代碼嗎?
我應該增加我的整個代碼,所以這是比較容易的,你們看我的問題呢? – Shrek