阅读背景:

在继续游戏循环之前等待用户鼠标按下事件

来源:互联网 

I have a game loop that re-draws a game board after each player makes a move. I would like to pause the main loop and wait until a player places a piece on the board, i.e. triggers a mouse down event on the canvas. Right now the game loop continues to redraw the board. Is there a way to wait for the player to move before continuing the loop?I have a game loop that re-draws a game board a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: