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,18 @@
import { Vec3 } from 'cc';
import { LevelConfig } from './LevelTypes';
/** 关卡运行时上下文(避免 TileLayout ↔ GameController 循环依赖) */
export interface LevelRuntimeContext {
getCurLevel(): LevelConfig | null;
worldToCell(world: Vec3): Vec3;
}
let runtimeContext: LevelRuntimeContext | null = null;
export function setLevelRuntimeContext(ctx: LevelRuntimeContext | null): void {
runtimeContext = ctx;
}
export function getLevelRuntimeContext(): LevelRuntimeContext | null {
return runtimeContext;
}