forked from zhiyuan/Project1
更新说明文档和退出关键字
This commit is contained in:
1 parent
b8b95377ce
commit
338af57951
3 files changed
+38
-5
No files matched your search
@@ -2,7 +2,6 @@ import pygame
|
||||
|
||||
from src.config.game_config import GameConfig
|
||||
from src.config.scenes import scene_dict
|
||||
from src.scenes.main_menu_scene import MainMenuScene
|
||||
|
||||
|
||||
class Game:
|
||||
@@ -45,8 +44,8 @@ class Game:
|
||||
|
||||
# 场景每帧更新逻辑运行
|
||||
self.scene.update()
|
||||
# 当场景的下一场景为game_exit时退出游戏
|
||||
if self.scene.next_scene == "game_exit":
|
||||
# 当场景的下一场景为exit时退出游戏
|
||||
if self.scene.next_scene == "exit":
|
||||
self.running = False
|
||||
|
||||
# 更新显示
|
||||
|
||||
Reference in new issue
Block a user