Initial Cocos Creator port of main-site Unity WebGL game.

Includes core gameplay, 600 exported levels, visual assets, web bridge, and bootstrap scene.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-22 14:57:46 +08:00
commit cba5105908
88 changed files with 13798 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { _decorator, Component } from 'cc';
import { GameManager } from '../manager/GameManager';
const { ccclass } = _decorator;
/** 对应 Unity UIMainJS 可 SendMessage("UIMain", "SetText", ...) */
@ccclass('UIMain')
export class UIMain extends Component {
private textVisible = false;
private textContent = '';
setText(str: string) {
this.textContent = str;
console.log('[UIMain]', str);
}
setTextActive(active: string) {
this.textVisible = active === 'true';
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "0585296d-ea8c-427b-8cc0-8d89a56719bb",
"files": [],
"subMetas": {},
"userData": {}
}