first commit

This commit is contained in:
2026-03-04 11:29:12 +08:00
commit 9ff5e028b0
233 changed files with 14235 additions and 0 deletions

34
assets/app/handle.ts Normal file
View File

@@ -0,0 +1,34 @@
import { game, sys } from 'cc';
import { App } from './app';
/**
* ccc除物理引擎等外的基础功能已经准备好了
*/
export function cccReady(app: App) {
// 为了防止web环境中异常掉帧问题(关键代码在cc.game._pacer._handleRAF中)
if (sys.isBrowser) {
// game.frameRate = 100; // 在60、90帧率手机上满帧率运行120帧率手机上以60帧率运行(可能不够流畅但省电)
game.frameRate = 200; // 满帧率运行
}
}
/**
* ccc全部功能都初始化完毕了
*/
export function cccInited(app: App) {
}
/**
* app除了用户自定义Manager未加载外其它都已准备好了
*/
export function appReady(app: App) {
}
/**
* app全部功能都初始化完毕了
*/
export function appInited(app: App) {
}