我正在使用python对游戏Qix进行基本翻拍,而且我在移动方面遇到了麻烦。
虽然我有关键字的函数,但是在我的其他循环运行时我无法执行它们。我如何使用像from multiprocessing import Process
这样的库同时运行它们?
以下是代码:
evil_moves() 'is the function that loops indefinitely'
wn.onkey(move_left, "Left") 'there are four of these, one for each direction'
wn.listen()