
n.移至
Where we either moveto our correct path or reach another impasse. 現(xiàn)在我們到了十字路口,要么走向正確道路。
MoveTo Move the window to the specified coordinates. 移動窗口
winName。moveTo((screen.width-w)/2,(screen.height-h)/2); 跟2一樣。(2)窗口始終在屏幕中央:
if r and not l and not u and not d then MoveTo(MoveCount,DrRight); {根據(jù)目的地來判斷運動的方向,從而播放相應方向運動的動畫}Collision;