pygame窗口想要居中显示怎么办?

没别的,在screen = pygame.display.set_mode(SIZE)之前加一句:
os.environ['SDL_VIDEO_CENTERED'] = '1' #居中显示
效果:
pygame窗口想要居中显示怎么办?
ok,完。。。

相关文章:

  • 2022-01-12
  • 2021-06-02
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2023-02-10
相关资源
相似解决方案