get_random_pos():
x, y = random.randint(10, 600), random.randint(20, 500)
return x, y
# 点击答应按钮后显示的页面...('214_2.jpg').convert()
screen.blit(background, (0, 0))
# 获取鼠标坐标
pos = pygame.mouse.get_pos...():
if event.type == pygame.QUIT:
sys.exit()
# 当鼠标点击同意按钮后,跳转结束页面...get_random_pos():
x, y = random.randint(20, 620), random.randint(20, 460)
return x, y
# 点击答应后显示的页面...sys.exit()
# 点击不答应按钮后显示的页面
def show_unlike_interface(screen):
screen.fill((255, 255, 255))