feat(SS) 添加故事场景其他内容

This commit is contained in:
chicrobot committed 2026-02-10 18:31:33 +08:00
1 parent 6b07a4a096
commit 062d950583
7 files changed
+44 -6

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
/**
* Control 场景类
*
* 允许用户控制角色
*/
import BreatheLife from './BreatheLife.js'
export default class Control extends BreatheLife {
constructor(sceneKey = 'Control') {
// 场景相关
super(sceneKey)
this.nextScene = 'InfoBar'
}
preload() {
super.preload()
}
create() {
super.create()
// 覆盖场景切换条件
this.initSceneTransition()
}
initSceneTransition() {
// 初始化角色计数器,用于跟踪创建的角色数量
this.smallGrassObjects = [] // 维护小草集合
}
}