From 70672349fe3c98f3bd9d33dd6d236056096c734d Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 5 Aug 2023 12:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- idea.md | 2 +- src/core/index.ts | 7 +++++-- src/core/main/game.ts | 2 -- src/data/settings.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) 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 @@ "试验性功能", "
", "开启后游戏将对加载进行优化,缩短进入游戏时的加载时长,而在游戏中对资源进行部分性按需加载,从而对加载进行优化。", - "该设置不会影响你的正常游戏,但如果网络环境较差,可能会导致楼层转换时间明显变长。", + "该设置不会影响你的正常游戏,但如果网络环境较差,可能会导致部分楼层转换时间明显变长。", "
", "
", "注:修改后刷新页面起效。"