Complete Cocos Creator port with level bundles, themes, and tooling.

Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 15:30:58 +08:00
parent cba5105908
commit d393302388
6248 changed files with 17322729 additions and 11036 deletions

View File

@@ -0,0 +1,13 @@
import { LevelConfig } from './LevelTypes';
/** 关卡预制体在 resources 下的路径(与 Unity Assets/Prefabs/Level/LevelN.prefab 对应) */
function asTrimmedPath(v: unknown): string | undefined {
if (v == null) return undefined;
const s = (typeof v === 'string' ? v : String(v)).trim();
return s || undefined;
}
/** 与 Unity levelPath 一致Level91601.prefab → level-prefabs/Level91601 */
export function getLevelPrefabResourcePath(levelID: number, _config?: LevelConfig | null): string {
return `level-prefabs/Level${levelID}`;
}