diff --git a/idea.md b/idea.md index 1c94de2..743b2cf 100644 --- a/idea.md +++ b/idea.md @@ -71,7 +71,7 @@ dam4.png ---- 存档 59 [] 完全 ts 化 [] 平行光 [] 视角控制系统 -[] 重构设置界面 +[x] 重构设置界面 [] 优化开头动画 [] 玩家可以设置字体大小 [] 完全删除 functions.js diff --git a/src/core/index.ts b/src/core/index.ts index 6f042b7..ebb6929 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -3,7 +3,7 @@ import { SoundController } from './audio/sound'; import { EventEmitter } from './common/eventEmitter'; import { loading, readyAllResource } from './loader/load'; import { ResourceStore, ResourceType } from './loader/resource'; -import { GameEvent } from './main/game'; +import { GameEvent, hook } from './main/game'; import { resolvePlugin } from './plugin'; interface AncTePlugin { @@ -52,7 +52,10 @@ function ready() { zipResource: new ResourceStore(), sound: new SoundController(), // @ts-ignore - plugin: {} + plugin: {}, + game: { + hook + } }; readyAllResource(); diff --git a/src/core/main/game.ts b/src/core/main/game.ts index fc00910..af0b091 100644 --- a/src/core/main/game.ts +++ b/src/core/main/game.ts @@ -5,5 +5,3 @@ export interface GameEvent extends EmitableEvent { } export const hook = new EventEmitter(); - -ancTe.game.hook = hook; diff --git a/src/data/settings.json b/src/data/settings.json index 98c84ca..5963dd8 100644 --- a/src/data/settings.json +++ b/src/data/settings.json @@ -44,7 +44,7 @@ "试验性功能", "
", "开启后游戏将对加载进行优化,缩短进入游戏时的加载时长,而在游戏中对资源进行部分性按需加载,从而对加载进行优化。", - "该设置不会影响你的正常游戏,但如果网络环境较差,可能会导致楼层转换时间明显变长。", + "该设置不会影响你的正常游戏,但如果网络环境较差,可能会导致部分楼层转换时间明显变长。", "
", "
", "注:修改后刷新页面起效。"