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:
7
assets/scripts/level/LevelIds.ts
Normal file
7
assets/scripts/level/LevelIds.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/** 与 Unity / 主站 config.js BEGINNING_REAL_LVID 一致;首关 91601 */
|
||||
export const LEVEL_ID_BASE = 91601;
|
||||
|
||||
/** 主站合法关卡 ID:从 BEGINNING_REAL_LVID(91601)起 */
|
||||
export function isGameLevelId(levelID: number): boolean {
|
||||
return Number.isFinite(levelID) && levelID >= LEVEL_ID_BASE;
|
||||
}
|
||||
Reference in New Issue
Block a user