def handle(self, event):
gd.BoardGame.handle(self, event) # send event handling up
if event.type == pygame.KEYDOWN or event.type == pygame.MOUSEBUTTONDOWN:
self.auto_check_reset()
if event.type == pygame.MOUSEMOTION:
if self.drag:
self.swap_font_color()
# if self.drag and self.mouse_entered_new:
# self.swap_font_color()
elif event.type == pygame.MOUSEBUTTONUP:
self.swap_font_color()
self.check_result()
# if self.drag and self.mouse_entered_new:
# self.swap_font_color()
评论列表
文章目录