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.

24 lines
378 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(),
}
game = tools.Game(state_dict,'main_menu')
game.run()
if __name__ == '__main__':
main()