def redraw_bomb(stdscr, refresh_lock):
global UPDATE_BOMBSPRITE
idx = 0
while True:
time.sleep(0.25)
if UPDATE_BOMBSPRITE:
refresh_lock.acquire()
curses.curs_set(0)
idx = drawbomb(stdscr, idx)
refresh_lock.release()
else:
break
评论列表
文章目录