Creating multiple screens in pygame

后端 未结 2 1107
隐瞒了意图╮
隐瞒了意图╮ 2021-01-22 04:31

Is there any way way to create multiple screens in Pygame without redrawing to the screen every time. For example, if we want to create a splash screen, then a main menu with bu

2条回答
  •  隐瞒了意图╮
    2021-01-22 05:03

    Just fill the screen with white and then draw the second screen onto the main screen. Then when you need the other screen, just refill the screen with black and then continue. It would help if both of your screens a function and you used a key like tab to "switch" between screens.

提交回复
热议问题