n.移至
Where we either moveto our correct path or reach another impasse. 现在我们到了十字路口,要么走向正确道路。
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); {根据目的地来判断运动的方向,从而播放相应方向运动的动画}Collision;