You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
421 B

6 months ago
# 主界面
import pygame
from source import tools, setup
from source.states import main_menu,load_screen,level
def main():
state_dict = {
'main_menu':main_menu.MainMenu(),
'load_screen':load_screen.LoadScreen(),
'level':level.Level(),
6 months ago
'game_over':load_screen.GameOver()
6 months ago
}
game = tools.Game(state_dict,'main_menu')
game.run()
if __name__ == '__main__':
main()