feature:添加开发者按钮
This commit is contained in:
+23
-602
@@ -1,602 +1,23 @@
|
||||
2026-7-15 17:08:45 - log: Load engine in D:\ProgramData\cocos\editors\Creator\3.8.3\resources\resources\3d\engine
|
||||
2026-7-15 17:08:45 - log: Profile changed: engine (modules.includeModules: 2d,3d,animation,audio,base,gfx-webgl,marionette,meshopt,particle,physics-cannon,primitive,profiler,skeletal-animation,tween,ui)
|
||||
2026-7-15 17:08:45 - log: Register native engine in D:\ProgramData\cocos\editors\Creator\3.8.3\resources\resources\3d\engine\native
|
||||
2026-7-15 17:08:46 - log: Request namespace: device-list
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Extension loading...
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Runtime config loaded: host=127.0.0.1, port=8765, profile=full, autostart=true
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Autostart is enabled, starting MCP server.
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Starting MCP server...
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Runtime config loaded: host=127.0.0.1, port=8765, profile=full, autostart=true
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP Server] Creating HTTP server on 127.0.0.1:8765...
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP Server] Listening on http://127.0.0.1:8765/
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] MCP server started at http://127.0.0.1:8765/
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] If this tool saves you time, please consider giving it a Star on GitHub: https://github.com/FunplayAI/funplay-cocos-mcp
|
||||
2026-7-15 17:08:50 - log: [Funplay Cocos MCP] Checking GitHub for newer Funplay Cocos MCP releases.
|
||||
2026-7-15 17:08:52 - warn: [Funplay Cocos MCP Server] Rejected GET /: SSE GET streams are not supported.
|
||||
2026-7-15 17:08:52 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-protected-resource: SSE GET streams are not supported.
|
||||
2026-7-15 17:08:52 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-authorization-server: SSE GET streams are not supported.
|
||||
2026-7-15 17:08:52 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/openid-configuration: SSE GET streams are not supported.
|
||||
2026-7-15 17:08:53 - info: [PreviewInEditor] preview process is ready
|
||||
2026-7-15 17:08:53 - warn: failed to connect login server due to request timeout
|
||||
2026-7-15 17:08:54 - log: [Scene] meshopt wasm decoder initialized
|
||||
2026-7-15 17:08:54 - log: [Scene] [box2d]:box2d wasm lib loaded.
|
||||
2026-7-15 17:08:54 - log: [Scene] [bullet]:bullet wasm lib loaded.
|
||||
2026-7-15 17:08:54 - log: [Scene] [PHYSICS]: using builtin.
|
||||
2026-7-15 17:08:54 - log: [Scene] Cocos Creator v3.8.3
|
||||
2026-7-15 17:08:54 - info: [Scene] Forward render pipeline initialized.
|
||||
2026-7-15 17:08:55 - log: [Scene] [PHYSICS]: switch from builtin to cannon.js.
|
||||
2026-7-15 17:08:55 - log: [Scene] [PHYSICS2D]: switch from box2d-wasm to builtin.
|
||||
2026-7-15 17:08:55 - warn: [Funplay Cocos MCP] Update check failed: Update check timed out after 5000ms.
|
||||
2026-7-15 17:09:51 - warn: [Funplay Cocos MCP Server] Rejected GET /: SSE GET streams are not supported.
|
||||
2026-7-15 17:09:51 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-protected-resource: SSE GET streams are not supported.
|
||||
2026-7-15 17:09:51 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-authorization-server: SSE GET streams are not supported.
|
||||
2026-7-15 17:09:51 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/openid-configuration: SSE GET streams are not supported.
|
||||
2026-7-15 17:18:43 - log: [PreviewInEditor] meshopt wasm decoder initialized
|
||||
2026-7-15 17:18:43 - log: [PreviewInEditor] [box2d]:box2d wasm lib loaded.
|
||||
2026-7-15 17:18:43 - log: [PreviewInEditor] [bullet]:bullet wasm lib loaded.
|
||||
2026-7-15 17:18:43 - log: [PreviewInEditor] [PHYSICS]: using builtin.
|
||||
2026-7-15 17:18:43 - log: [PreviewInEditor] Cocos Creator v3.8.3
|
||||
2026-7-15 17:18:43 - info: [PreviewInEditor] Forward render pipeline initialized.
|
||||
2026-7-15 17:18:44 - log: [PreviewInEditor] [PHYSICS]: switch from builtin to cannon.js.
|
||||
2026-7-15 17:18:44 - log: [PreviewInEditor] [PHYSICS2D]: switch from box2d-wasm to builtin.
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 1.7777777777777777 Rect { x: 469, y: 0, width: 562.5, height: 1000 } View {
|
||||
_id: 'view',
|
||||
_priority: 0,
|
||||
_executeInEditMode: false,
|
||||
_callbackTable: [Object: null prototype] {
|
||||
'design-resolution-changed': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
},
|
||||
'canvas-resize': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
}
|
||||
},
|
||||
_designResolutionSize: Size { width: 1080, height: 1920 },
|
||||
_scaleX: 0.5208333333333334,
|
||||
_scaleY: 0.5208333333333334,
|
||||
_viewportRect: Rect { x: 469, y: 0, width: 562.5, height: 1000 },
|
||||
_visibleRect: Rect { x: 0, y: 0, width: 1080, height: 1919.9999999999998 },
|
||||
_autoFullScreen: false,
|
||||
_retinaEnabled: false,
|
||||
_resizeCallback: null,
|
||||
_resolutionPolicy: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ShowAll { name: 'ShowAll', _result: [Object] }
|
||||
},
|
||||
_rpExactFit: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ExactFit { name: 'ExactFit', _result: [Object] }
|
||||
},
|
||||
_rpShowAll: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ShowAll { name: 'ShowAll', _result: [Object] }
|
||||
},
|
||||
_rpNoBorder: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: NoBorder { name: 'NoBorder', _result: [Object] }
|
||||
},
|
||||
_rpFixedHeight: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedHeight { name: 'FixedHeight', _result: [Object] }
|
||||
},
|
||||
_rpFixedWidth: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedWidth { name: 'FixedWidth', _result: [Object] }
|
||||
}
|
||||
}
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 适配屏幕宽高
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 倒计时足够
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 体力超过上线
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 是否有类 { LevelConfig: [class LevelConfig], Weapon: [class Weapon] } LevelConfig [class LevelConfig]
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 设置data LevelConfig LevelConfig
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 是否有类 { LevelConfig: [class LevelConfig], Weapon: [class Weapon] } Weapon [class Weapon]
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 设置data Weapon Weapon
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 0.6666666666666666 Rect { x: 0, y: 0, width: 1500, height: 1000 } View {
|
||||
_id: 'view',
|
||||
_priority: 0,
|
||||
_executeInEditMode: false,
|
||||
_callbackTable: [Object: null prototype] {
|
||||
'design-resolution-changed': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
},
|
||||
'canvas-resize': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
}
|
||||
},
|
||||
_designResolutionSize: Size { width: 1080, height: 1920 },
|
||||
_scaleX: 1.3888888888888888,
|
||||
_scaleY: 0.5208333333333334,
|
||||
_viewportRect: Rect { x: 0, y: 0, width: 1500, height: 1000 },
|
||||
_visibleRect: Rect { x: 0, y: 0, width: 1080, height: 1919.9999999999998 },
|
||||
_autoFullScreen: false,
|
||||
_retinaEnabled: false,
|
||||
_resizeCallback: null,
|
||||
_resolutionPolicy: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ExactFit { name: 'ExactFit', _result: [Object] }
|
||||
},
|
||||
_rpExactFit: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ExactFit { name: 'ExactFit', _result: [Object] }
|
||||
},
|
||||
_rpShowAll: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ShowAll { name: 'ShowAll', _result: [Object] }
|
||||
},
|
||||
_rpNoBorder: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: NoBorder { name: 'NoBorder', _result: [Object] }
|
||||
},
|
||||
_rpFixedHeight: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedHeight { name: 'FixedHeight', _result: [Object] }
|
||||
},
|
||||
_rpFixedWidth: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedWidth { name: 'FixedWidth', _result: [Object] }
|
||||
}
|
||||
}
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 适配屏幕宽高
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 1.7790927021696252 Rect { x: 0, y: 0, width: 507, height: 902 } View {
|
||||
_id: 'view',
|
||||
_priority: 0,
|
||||
_executeInEditMode: false,
|
||||
_callbackTable: [Object: null prototype] {
|
||||
'design-resolution-changed': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
},
|
||||
'canvas-resize': CallbackList {
|
||||
callbackInfos: [Array],
|
||||
isInvoking: false,
|
||||
containCanceled: false
|
||||
}
|
||||
},
|
||||
_designResolutionSize: Size { width: 1080, height: 720 },
|
||||
_scaleX: 0.46944444444444444,
|
||||
_scaleY: 1.2527777777777778,
|
||||
_viewportRect: Rect { x: 0, y: 0, width: 507, height: 902 },
|
||||
_visibleRect: Rect { x: 0, y: 0, width: 1080, height: 720 },
|
||||
_autoFullScreen: false,
|
||||
_retinaEnabled: false,
|
||||
_resizeCallback: null,
|
||||
_resolutionPolicy: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ExactFit { name: 'ExactFit', _result: [Object] }
|
||||
},
|
||||
_rpExactFit: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ExactFit { name: 'ExactFit', _result: [Object] }
|
||||
},
|
||||
_rpShowAll: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: ShowAll { name: 'ShowAll', _result: [Object] }
|
||||
},
|
||||
_rpNoBorder: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: NoBorder { name: 'NoBorder', _result: [Object] }
|
||||
},
|
||||
_rpFixedHeight: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedHeight { name: 'FixedHeight', _result: [Object] }
|
||||
},
|
||||
_rpFixedWidth: ResolutionPolicy {
|
||||
name: 'ResolutionPolicy',
|
||||
_containerStrategy: EqualToFrame { name: 'EqualToFrame' },
|
||||
_contentStrategy: FixedWidth { name: 'FixedWidth', _result: [Object] }
|
||||
}
|
||||
}
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 修改屏幕分辨率 适配屏幕宽度
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] [
|
||||
Weapon {
|
||||
id: 1,
|
||||
prefab: 'Wep_HandGun',
|
||||
point: 'HandGun',
|
||||
coin: 0,
|
||||
gunName: '沙漠之鹰',
|
||||
spriteName: 'WEP_HandGun'
|
||||
},
|
||||
Weapon {
|
||||
id: 2,
|
||||
prefab: 'Wep_Rifle_1',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: 'M4A1',
|
||||
spriteName: 'WEP_M4A1 copy'
|
||||
},
|
||||
Weapon {
|
||||
id: 3,
|
||||
prefab: 'Wep_Rifle_2',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '隐匿杀手',
|
||||
spriteName: 'WEP_Rifle_2'
|
||||
},
|
||||
Weapon {
|
||||
id: 4,
|
||||
prefab: 'Wep_Rifle_3',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '裁决者',
|
||||
spriteName: 'WEP_Rifle_3'
|
||||
},
|
||||
Weapon {
|
||||
id: 5,
|
||||
prefab: 'Wep_Rifle_4',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '破晓突袭',
|
||||
spriteName: 'WEP_Rifle_4'
|
||||
},
|
||||
Weapon {
|
||||
id: 6,
|
||||
prefab: 'Wep_Sniper_AWP',
|
||||
point: 'Rifle',
|
||||
coin: 2500,
|
||||
gunName: 'AWP',
|
||||
spriteName: 'WEP_Sniper_AWP'
|
||||
},
|
||||
Weapon {
|
||||
id: 7,
|
||||
prefab: 'Wep_Rifle_98k',
|
||||
point: 'Rifle',
|
||||
coin: 2500,
|
||||
gunName: '98K',
|
||||
spriteName: 'WEP_98k'
|
||||
},
|
||||
Weapon {
|
||||
id: 8,
|
||||
prefab: 'Wep_Sniper_01',
|
||||
point: 'Rifle',
|
||||
coin: 3000,
|
||||
gunName: '星耀战隼',
|
||||
spriteName: 'WEP_Sniper_1'
|
||||
}
|
||||
]
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] [class Weapon]
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] Weapon
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] Map(2) {
|
||||
'LevelConfig' => [
|
||||
LevelConfig {
|
||||
id: 1,
|
||||
env: 'env_level1',
|
||||
enemy: 'enemy_level1',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 2,
|
||||
env: 'env_level1',
|
||||
enemy: 'enemy_level2',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 3,
|
||||
env: 'env_level2_Muyou',
|
||||
enemy: 'enemy_level3',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 4,
|
||||
env: 'env_level2_Muyou',
|
||||
enemy: 'enemy_level4',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 5,
|
||||
env: 'env_level2_Muyou',
|
||||
enemy: 'enemy_level5',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 6,
|
||||
env: 'env_level3_Muyou',
|
||||
enemy: 'enemy_level6',
|
||||
aimFov: 25
|
||||
},
|
||||
LevelConfig {
|
||||
id: 7,
|
||||
env: 'env_level3_Muyou',
|
||||
enemy: 'enemy_level7',
|
||||
aimFov: 15
|
||||
},
|
||||
LevelConfig {
|
||||
id: 8,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level8',
|
||||
aimFov: 15
|
||||
},
|
||||
LevelConfig {
|
||||
id: 9,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level9',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 10,
|
||||
env: 'env_level5_Muyou',
|
||||
enemy: 'enemy_level10',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 11,
|
||||
env: 'env_level5_Muyou',
|
||||
enemy: 'enemy_level11',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 12,
|
||||
env: 'env_level3_Muyou',
|
||||
enemy: 'enemy_level12',
|
||||
aimFov: 20
|
||||
},
|
||||
LevelConfig {
|
||||
id: 13,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level13',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 14,
|
||||
env: 'env_level2_Muyou',
|
||||
enemy: 'enemy_level14',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 15,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level15',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 16,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level16',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 17,
|
||||
env: 'env_level5_Muyou',
|
||||
enemy: 'enemy_level17',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 18,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level18',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 19,
|
||||
env: 'env_level3_Muyou',
|
||||
enemy: 'enemy_level19',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 20,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level20',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 21,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level21',
|
||||
aimFov: 6
|
||||
},
|
||||
LevelConfig {
|
||||
id: 22,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level22',
|
||||
aimFov: 6
|
||||
},
|
||||
LevelConfig {
|
||||
id: 23,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level23',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 24,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level24',
|
||||
aimFov: 7
|
||||
},
|
||||
LevelConfig {
|
||||
id: 25,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level25',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 26,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level26',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 27,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level27',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 28,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level28',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 29,
|
||||
env: 'env_level5_Muyou',
|
||||
enemy: 'enemy_level29',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 30,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level30',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 31,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level31',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 32,
|
||||
env: 'env_level5_Muyou',
|
||||
enemy: 'enemy_level32',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 33,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level33',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 34,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level34',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 35,
|
||||
env: 'env_level6_Muyou',
|
||||
enemy: 'enemy_level35',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 36,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level36',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 37,
|
||||
env: 'env_level7_Muyou',
|
||||
enemy: 'enemy_level37',
|
||||
aimFov: 5
|
||||
},
|
||||
LevelConfig {
|
||||
id: 38,
|
||||
env: 'env_level2_Muyou',
|
||||
enemy: 'enemy_level38',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 39,
|
||||
env: 'env_level3_Muyou',
|
||||
enemy: 'enemy_level39',
|
||||
aimFov: 10
|
||||
},
|
||||
LevelConfig {
|
||||
id: 40,
|
||||
env: 'env_level4_Muyou',
|
||||
enemy: 'enemy_level40',
|
||||
aimFov: 5
|
||||
}
|
||||
],
|
||||
'Weapon' => [
|
||||
Weapon {
|
||||
id: 1,
|
||||
prefab: 'Wep_HandGun',
|
||||
point: 'HandGun',
|
||||
coin: 0,
|
||||
gunName: '沙漠之鹰',
|
||||
spriteName: 'WEP_HandGun'
|
||||
},
|
||||
Weapon {
|
||||
id: 2,
|
||||
prefab: 'Wep_Rifle_1',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: 'M4A1',
|
||||
spriteName: 'WEP_M4A1 copy'
|
||||
},
|
||||
Weapon {
|
||||
id: 3,
|
||||
prefab: 'Wep_Rifle_2',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '隐匿杀手',
|
||||
spriteName: 'WEP_Rifle_2'
|
||||
},
|
||||
Weapon {
|
||||
id: 4,
|
||||
prefab: 'Wep_Rifle_3',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '裁决者',
|
||||
spriteName: 'WEP_Rifle_3'
|
||||
},
|
||||
Weapon {
|
||||
id: 5,
|
||||
prefab: 'Wep_Rifle_4',
|
||||
point: 'Rifle',
|
||||
coin: 1000,
|
||||
gunName: '破晓突袭',
|
||||
spriteName: 'WEP_Rifle_4'
|
||||
},
|
||||
Weapon {
|
||||
id: 6,
|
||||
prefab: 'Wep_Sniper_AWP',
|
||||
point: 'Rifle',
|
||||
coin: 2500,
|
||||
gunName: 'AWP',
|
||||
spriteName: 'WEP_Sniper_AWP'
|
||||
},
|
||||
Weapon {
|
||||
id: 7,
|
||||
prefab: 'Wep_Rifle_98k',
|
||||
point: 'Rifle',
|
||||
coin: 2500,
|
||||
gunName: '98K',
|
||||
spriteName: 'WEP_98k'
|
||||
},
|
||||
Weapon {
|
||||
id: 8,
|
||||
prefab: 'Wep_Sniper_01',
|
||||
point: 'Rifle',
|
||||
coin: 3000,
|
||||
gunName: '星耀战隼',
|
||||
spriteName: 'WEP_Sniper_1'
|
||||
}
|
||||
]
|
||||
}
|
||||
2026-7-15 17:18:45 - log: [PreviewInEditor] 刷新 1 1 1 0
|
||||
2026-7-15 17:23:57 - warn: [Funplay Cocos MCP Server] Rejected GET /: SSE GET streams are not supported.
|
||||
2026-7-15 17:23:57 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-protected-resource: SSE GET streams are not supported.
|
||||
2026-7-15 17:23:57 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-authorization-server: SSE GET streams are not supported.
|
||||
2026-7-15 17:23:57 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/openid-configuration: SSE GET streams are not supported.
|
||||
2026-7-15 17:24:06 - warn: [Funplay Cocos MCP Server] Rejected GET /: SSE GET streams are not supported.
|
||||
2026-7-15 17:24:06 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-protected-resource: SSE GET streams are not supported.
|
||||
2026-7-15 17:24:06 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/oauth-authorization-server: SSE GET streams are not supported.
|
||||
2026-7-15 17:24:06 - warn: [Funplay Cocos MCP Server] Rejected GET /.well-known/openid-configuration: SSE GET streams are not supported.
|
||||
2026-7-16 10:25:15 - log: Load engine in D:\ProgramData\cocos\editors\Creator\3.8.3\resources\resources\3d\engine
|
||||
2026-7-16 10:25:16 - log: Profile changed: engine (modules.includeModules: 2d,3d,animation,audio,base,gfx-webgl,marionette,meshopt,particle,physics-cannon,primitive,profiler,skeletal-animation,tween,ui)
|
||||
2026-7-16 10:25:16 - log: Register native engine in D:\ProgramData\cocos\editors\Creator\3.8.3\resources\resources\3d\engine\native
|
||||
2026-7-16 10:25:17 - log: Request namespace: device-list
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Extension loading...
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Runtime config loaded: host=127.0.0.1, port=8765, profile=full, autostart=true
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Autostart is enabled, starting MCP server.
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Starting MCP server...
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Runtime config loaded: host=127.0.0.1, port=8765, profile=full, autostart=true
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP Server] Creating HTTP server on 127.0.0.1:8765...
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP Server] Listening on http://127.0.0.1:8765/
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] MCP server started at http://127.0.0.1:8765/
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] If this tool saves you time, please consider giving it a Star on GitHub: https://github.com/FunplayAI/funplay-cocos-mcp
|
||||
2026-7-16 10:25:22 - log: [Funplay Cocos MCP] Checking GitHub for newer Funplay Cocos MCP releases.
|
||||
2026-7-16 10:25:23 - log: [Funplay Cocos MCP] Update check completed: current=0.4.2, latest=0.4.2
|
||||
2026-7-16 10:25:26 - log: [Scene] meshopt wasm decoder initialized
|
||||
2026-7-16 10:25:26 - log: [Scene] [box2d]:box2d wasm lib loaded.
|
||||
2026-7-16 10:25:26 - log: [Scene] [bullet]:bullet wasm lib loaded.
|
||||
2026-7-16 10:25:26 - log: [Scene] [PHYSICS]: using builtin.
|
||||
2026-7-16 10:25:26 - log: [Scene] Cocos Creator v3.8.3
|
||||
2026-7-16 10:25:26 - info: [Scene] Forward render pipeline initialized.
|
||||
2026-7-16 10:25:26 - log: [Scene] [PHYSICS]: switch from builtin to cannon.js.
|
||||
2026-7-16 10:25:26 - log: [Scene] [PHYSICS2D]: switch from box2d-wasm to builtin.
|
||||
|
||||
@@ -183,11 +183,12 @@
|
||||
"0_2",
|
||||
"0_3",
|
||||
"0_3_0",
|
||||
"0_3_2",
|
||||
"0_3_3",
|
||||
"0_3_8",
|
||||
"0_3_10",
|
||||
"0_4",
|
||||
"0_4_2",
|
||||
"0_4_3",
|
||||
"0_4_8",
|
||||
"0_4_9",
|
||||
"0_4_10",
|
||||
"0_5",
|
||||
"0_6",
|
||||
"0_7",
|
||||
@@ -216,7 +217,9 @@
|
||||
"animationUuid": "",
|
||||
"expandLevels": [
|
||||
"0",
|
||||
"0_20"
|
||||
"0_18",
|
||||
"0_20",
|
||||
"0_20_1"
|
||||
]
|
||||
},
|
||||
"d2bea724-03a9-4d97-aece-280b4192edd1": {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"current-scene": ""
|
||||
"current-scene": "cce78068-e13a-47f5-ae44-d1ac5c097bd7"
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -897,109 +897,6 @@
|
||||
},
|
||||
"timestamp": 1784085726560
|
||||
},
|
||||
"f3d2c0c32b5bda2d3627fc340699129d1ecef51f": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "63a64431b6b21cd924e8e7464d636fa810675c73"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "17c15c9f91cab21852afabf06f526d531a818ca5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "140dc6bd476739f3eb222d0c65eda1306239d6c5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a912ccf8538595758f48834d371e876268f35154"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "067be96b86fad6e644289c720d9d23738f4ed87c"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7503fea72389d78b642c3a8f8e1395d3734a9d16"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "d7006a76a6894c1b64ce9eaf0f0f41170ec7bb9f"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "846848029ee2eaec7dd62969289523953b0fd69b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "abd6b3d279fb075f8e562e5b6b6f34a9435a296e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "272d64b5902574fa3c4e1d917eb5c8c66cc47e6e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "398d00769bffaa6da8f5ea12e7941d4a67eac52a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784085726688
|
||||
},
|
||||
"97ba04727710315dc2b2eb043263e1cc25995b18": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
@@ -1551,11 +1448,121 @@
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784106532698
|
||||
"timestamp": 1784168724040
|
||||
},
|
||||
"6a5019a719a9014c047e67aa1cf34453ab8392ce": {
|
||||
"imports": {},
|
||||
"timestamp": 1784106532744
|
||||
"timestamp": 1784168724086
|
||||
},
|
||||
"f3d2c0c32b5bda2d3627fc340699129d1ecef51f": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "63a64431b6b21cd924e8e7464d636fa810675c73"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "17c15c9f91cab21852afabf06f526d531a818ca5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "140dc6bd476739f3eb222d0c65eda1306239d6c5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a912ccf8538595758f48834d371e876268f35154"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_13": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "dd9b18077e2f673e16c18254c48f641a27848de5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "067be96b86fad6e644289c720d9d23738f4ed87c"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7503fea72389d78b642c3a8f8e1395d3734a9d16"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "d7006a76a6894c1b64ce9eaf0f0f41170ec7bb9f"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "846848029ee2eaec7dd62969289523953b0fd69b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "abd6b3d279fb075f8e562e5b6b6f34a9435a296e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "272d64b5902574fa3c4e1d917eb5c8c66cc47e6e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "398d00769bffaa6da8f5ea12e7941d4a67eac52a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784168724376
|
||||
},
|
||||
"6d8fd2b0177941b032ddc0733af48a561fb60657": {
|
||||
"imports": {
|
||||
@@ -1798,7 +1805,7 @@
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784106534379
|
||||
"timestamp": 1784168726126
|
||||
}
|
||||
},
|
||||
"entries": {
|
||||
|
||||
+78
-3
@@ -1,7 +1,7 @@
|
||||
System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12"], function (_export, _context) {
|
||||
System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12", "__unresolved_13"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Animation, AnimationComponent, Button, instantiate, Label, Node, Prefab, randomRange, randomRangeInt, tween, Vec2, Vec3, PanelBase, FPSCameraController, GameController, TargetIconItem, EventCenter, UIManager, QingBaoPanel, SettingPanel, SdkMgr, AudioMgr, AssetController, LocalSaveMgr, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _class3, _crd, ccclass, property, PlayPanel;
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Animation, AnimationComponent, Button, Color, HorizontalTextAlignment, instantiate, Label, Node, Prefab, randomRange, randomRangeInt, tween, UITransform, Vec2, Vec3, VerticalTextAlignment, PanelBase, FPSCameraController, GameController, TargetIconItem, EventCenter, UIManager, QingBaoPanel, SettingPanel, SdkMgr, AudioMgr, AssetController, LocalSaveMgr, LevelState, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _class3, _crd, ccclass, property, PlayPanel;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
@@ -61,6 +61,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
_reporterNs.report("LocalSaveMgr", "../framework/data/LocalSaveMgr", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfLevelState(extras) {
|
||||
_reporterNs.report("LevelState", "../EnumFile", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
@@ -72,6 +76,8 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
Animation = _cc.Animation;
|
||||
AnimationComponent = _cc.AnimationComponent;
|
||||
Button = _cc.Button;
|
||||
Color = _cc.Color;
|
||||
HorizontalTextAlignment = _cc.HorizontalTextAlignment;
|
||||
instantiate = _cc.instantiate;
|
||||
Label = _cc.Label;
|
||||
Node = _cc.Node;
|
||||
@@ -79,8 +85,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
randomRange = _cc.randomRange;
|
||||
randomRangeInt = _cc.randomRangeInt;
|
||||
tween = _cc.tween;
|
||||
UITransform = _cc.UITransform;
|
||||
Vec2 = _cc.Vec2;
|
||||
Vec3 = _cc.Vec3;
|
||||
VerticalTextAlignment = _cc.VerticalTextAlignment;
|
||||
}, function (_unresolved_2) {
|
||||
PanelBase = _unresolved_2.PanelBase;
|
||||
}, function (_unresolved_3) {
|
||||
@@ -105,13 +113,15 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
AssetController = _unresolved_12.AssetController;
|
||||
}, function (_unresolved_13) {
|
||||
LocalSaveMgr = _unresolved_13.LocalSaveMgr;
|
||||
}, function (_unresolved_14) {
|
||||
LevelState = _unresolved_14.LevelState;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "a66cdbq8WdFToV6aW4c47xh", "PlayPanel", undefined);
|
||||
|
||||
__checkObsolete__(['_decorator', 'animation', 'Animation', 'AnimationComponent', 'Button', 'Component', 'EventTouch', 'Input', 'input', 'instantiate', 'Label', 'math', 'Node', 'Prefab', 'randomRange', 'randomRangeInt', 'screen', 'Screen', 'tween', 'Vec2', 'Vec3', 'view']);
|
||||
__checkObsolete__(['_decorator', 'animation', 'Animation', 'AnimationComponent', 'Button', 'Color', 'Component', 'EventTouch', 'HorizontalTextAlignment', 'Input', 'input', 'instantiate', 'Label', 'math', 'Node', 'Prefab', 'randomRange', 'randomRangeInt', 'screen', 'Screen', 'tween', 'UITransform', 'Vec2', 'Vec3', 'VerticalTextAlignment', 'view']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
@@ -201,10 +211,75 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
this.qingBaoResultBtn.node.on(Button.EventType.CLICK, this.onClickQingBaoResult, this);
|
||||
this.saoMiao.node.on(Button.EventType.CLICK, this.onClickSaoMiao, this);
|
||||
this.setting.node.on(Button.EventType.CLICK, this.onClickSetting, this);
|
||||
this.createDeveloperButtons();
|
||||
(_crd && EventCenter === void 0 ? (_reportPossibleCrUseOfEventCenter({
|
||||
error: Error()
|
||||
}), EventCenter) : EventCenter).onEnemyDie.on(null, this.refreshTargetCount).bind(this);
|
||||
}
|
||||
/** 为测试关卡提供快捷操作,仅显示文字,避免与正式功能图标混淆。 */
|
||||
|
||||
|
||||
createDeveloperButtons() {
|
||||
this.createDeveloperButton('DEV_KillEnemies', '开发:杀死敌人', new Vec3(350, 830, 0), this.onClickDevKillEnemies);
|
||||
this.createDeveloperButton('DEV_CompleteLevel', '开发:完成过关', new Vec3(350, 760, 0), this.onClickDevCompleteLevel);
|
||||
}
|
||||
|
||||
createDeveloperButton(name, text, position, callback) {
|
||||
const buttonNode = new Node(name);
|
||||
buttonNode.name = name;
|
||||
buttonNode.layer = this.setting.node.layer;
|
||||
buttonNode.setParent(this.setting.node.parent);
|
||||
buttonNode.setPosition(position);
|
||||
buttonNode.addComponent(UITransform).setContentSize(220, 60);
|
||||
const button = buttonNode.addComponent(Button);
|
||||
const labelNode = new Node('Label');
|
||||
labelNode.layer = buttonNode.layer;
|
||||
labelNode.setParent(buttonNode);
|
||||
labelNode.addComponent(UITransform).setContentSize(220, 60);
|
||||
const label = labelNode.addComponent(Label);
|
||||
label.string = text;
|
||||
label.fontSize = 24;
|
||||
label.lineHeight = 32;
|
||||
label.color = new Color(255, 220, 90, 255);
|
||||
label.horizontalAlign = HorizontalTextAlignment.CENTER;
|
||||
label.verticalAlign = VerticalTextAlignment.CENTER;
|
||||
button.node.on(Button.EventType.CLICK, callback, this);
|
||||
}
|
||||
|
||||
onClickDevKillEnemies() {
|
||||
const level = (_crd && GameController === void 0 ? (_reportPossibleCrUseOfGameController({
|
||||
error: Error()
|
||||
}), GameController) : GameController).getInstance().curLevel;
|
||||
if (level.levelState !== (_crd && LevelState === void 0 ? (_reportPossibleCrUseOfLevelState({
|
||||
error: Error()
|
||||
}), LevelState) : LevelState).Running) return;
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
error: Error()
|
||||
}), AudioMgr) : AudioMgr).inst.playOneShot((_crd && AssetController === void 0 ? (_reportPossibleCrUseOfAssetController({
|
||||
error: Error()
|
||||
}), AssetController) : AssetController).instance.click);
|
||||
|
||||
for (const enemy of level.enemies) {
|
||||
if (!enemy.isDie) {
|
||||
enemy.setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onClickDevCompleteLevel() {
|
||||
const level = (_crd && GameController === void 0 ? (_reportPossibleCrUseOfGameController({
|
||||
error: Error()
|
||||
}), GameController) : GameController).getInstance().curLevel;
|
||||
if (level.levelState !== (_crd && LevelState === void 0 ? (_reportPossibleCrUseOfLevelState({
|
||||
error: Error()
|
||||
}), LevelState) : LevelState).Running) return;
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
error: Error()
|
||||
}), AudioMgr) : AudioMgr).inst.playOneShot((_crd && AssetController === void 0 ? (_reportPossibleCrUseOfAssetController({
|
||||
error: Error()
|
||||
}), AssetController) : AssetController).instance.click);
|
||||
level.win();
|
||||
}
|
||||
|
||||
onClickSetting() {
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -210,6 +210,7 @@
|
||||
"__unresolved_10": "./chunks/17/17c15c9f91cab21852afabf06f526d531a818ca5.js",
|
||||
"__unresolved_11": "./chunks/14/140dc6bd476739f3eb222d0c65eda1306239d6c5.js",
|
||||
"__unresolved_12": "./chunks/a9/a912ccf8538595758f48834d371e876268f35154.js",
|
||||
"__unresolved_13": "./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js",
|
||||
"__unresolved_2": "./chunks/06/067be96b86fad6e644289c720d9d23738f4ed87c.js",
|
||||
"__unresolved_3": "./chunks/75/7503fea72389d78b642c3a8f8e1395d3734a9d16.js",
|
||||
"__unresolved_4": "./chunks/3e/3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf.js",
|
||||
@@ -249,6 +250,9 @@
|
||||
"./chunks/3e/3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/cc/cce2d64bf43cd827ad5c0d87dcb166b068a41ba8.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/b8/b84580597e9cababc38b7a3ce49a27f22d6f0abe.js",
|
||||
@@ -274,9 +278,6 @@
|
||||
"__unresolved_6": "./chunks/39/398d00769bffaa6da8f5ea12e7941d4a67eac52a.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/ba/bace070c537a3e1854e903015145470ccbad65f3.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/63/63a64431b6b21cd924e8e7464d636fa810675c73.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"modules": {
|
||||
"cce:/internal/x/cc": {
|
||||
"mTimestamp": 6949.783300001174,
|
||||
"mTimestamp": 7351.0459999889135,
|
||||
"chunkId": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b",
|
||||
"imports": [
|
||||
{
|
||||
@@ -640,7 +640,7 @@
|
||||
]
|
||||
},
|
||||
"cce:/internal/x/prerequisite-imports": {
|
||||
"mTimestamp": 8739.596999999136,
|
||||
"mTimestamp": 9538.506699994206,
|
||||
"chunkId": "6d8fd2b0177941b032ddc0733af48a561fb60657",
|
||||
"imports": [
|
||||
{
|
||||
@@ -1583,7 +1583,7 @@
|
||||
]
|
||||
},
|
||||
"cce:/internal/code-quality/cr.mjs": {
|
||||
"mTimestamp": 1784106525646,
|
||||
"mTimestamp": 1784168716609,
|
||||
"chunkId": "6a5019a719a9014c047e67aa1cf34453ab8392ce",
|
||||
"imports": [],
|
||||
"type": "esm",
|
||||
@@ -3634,7 +3634,7 @@
|
||||
},
|
||||
"file:///D:/Users/admin/Alien_Sniper/assets/scripts/ui/PlayPanel.ts": {
|
||||
"mTimestamp": {
|
||||
"mtime": 1784085527195.843,
|
||||
"mtime": 1784168397523.1873,
|
||||
"uuid": "a66cd6ea-f167-454e-857a-696e1ce3bc61"
|
||||
},
|
||||
"chunkId": "f3d2c0c32b5bda2d3627fc340699129d1ecef51f",
|
||||
@@ -3654,11 +3654,11 @@
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 224
|
||||
"column": 292
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 228
|
||||
"column": 296
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3829,6 +3829,20 @@
|
||||
"column": 61
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"value": "../EnumFile",
|
||||
"resolved": "__unresolved_13",
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 15,
|
||||
"column": 27
|
||||
},
|
||||
"end": {
|
||||
"line": 15,
|
||||
"column": 40
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "esm",
|
||||
@@ -3944,6 +3958,13 @@
|
||||
"url": "file:///D:/Users/admin/Alien_Sniper/assets/scripts/framework/data/LocalSaveMgr.ts"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
{
|
||||
"resolved": {
|
||||
"type": "module",
|
||||
"url": "file:///D:/Users/admin/Alien_Sniper/assets/scripts/EnumFile.ts"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -897,109 +897,6 @@
|
||||
},
|
||||
"timestamp": 1784085727644
|
||||
},
|
||||
"f3d2c0c32b5bda2d3627fc340699129d1ecef51f": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "63a64431b6b21cd924e8e7464d636fa810675c73"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "17c15c9f91cab21852afabf06f526d531a818ca5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "140dc6bd476739f3eb222d0c65eda1306239d6c5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a912ccf8538595758f48834d371e876268f35154"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "067be96b86fad6e644289c720d9d23738f4ed87c"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7503fea72389d78b642c3a8f8e1395d3734a9d16"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "d7006a76a6894c1b64ce9eaf0f0f41170ec7bb9f"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "846848029ee2eaec7dd62969289523953b0fd69b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "abd6b3d279fb075f8e562e5b6b6f34a9435a296e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "272d64b5902574fa3c4e1d917eb5c8c66cc47e6e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "398d00769bffaa6da8f5ea12e7941d4a67eac52a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784085727812
|
||||
},
|
||||
"97ba04727710315dc2b2eb043263e1cc25995b18": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
@@ -1446,11 +1343,121 @@
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784106532886
|
||||
"timestamp": 1784168724478
|
||||
},
|
||||
"6a5019a719a9014c047e67aa1cf34453ab8392ce": {
|
||||
"imports": {},
|
||||
"timestamp": 1784106532928
|
||||
"timestamp": 1784168724516
|
||||
},
|
||||
"f3d2c0c32b5bda2d3627fc340699129d1ecef51f": {
|
||||
"imports": {
|
||||
"__unresolved_0": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "6a5019a719a9014c047e67aa1cf34453ab8392ce"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_1": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "63a64431b6b21cd924e8e7464d636fa810675c73"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_10": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "17c15c9f91cab21852afabf06f526d531a818ca5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_11": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "140dc6bd476739f3eb222d0c65eda1306239d6c5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_12": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "a912ccf8538595758f48834d371e876268f35154"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_13": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "dd9b18077e2f673e16c18254c48f641a27848de5"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_2": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "067be96b86fad6e644289c720d9d23738f4ed87c"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_3": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "7503fea72389d78b642c3a8f8e1395d3734a9d16"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_4": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_5": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "d7006a76a6894c1b64ce9eaf0f0f41170ec7bb9f"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_6": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "846848029ee2eaec7dd62969289523953b0fd69b"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_7": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "abd6b3d279fb075f8e562e5b6b6f34a9435a296e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_8": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "272d64b5902574fa3c4e1d917eb5c8c66cc47e6e"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"__unresolved_9": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "398d00769bffaa6da8f5ea12e7941d4a67eac52a"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
"cc": {
|
||||
"resolved": {
|
||||
"type": "chunk",
|
||||
"id": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784168724698
|
||||
},
|
||||
"6d8fd2b0177941b032ddc0733af48a561fb60657": {
|
||||
"imports": {
|
||||
@@ -1693,7 +1700,7 @@
|
||||
"messages": []
|
||||
}
|
||||
},
|
||||
"timestamp": 1784106534447
|
||||
"timestamp": 1784168726182
|
||||
}
|
||||
},
|
||||
"entries": {
|
||||
|
||||
+78
-3
@@ -1,7 +1,7 @@
|
||||
System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12"], function (_export, _context) {
|
||||
System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5", "__unresolved_6", "__unresolved_7", "__unresolved_8", "__unresolved_9", "__unresolved_10", "__unresolved_11", "__unresolved_12", "__unresolved_13"], function (_export, _context) {
|
||||
"use strict";
|
||||
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Animation, AnimationComponent, Button, instantiate, Label, Node, Prefab, randomRange, randomRangeInt, tween, Vec2, Vec3, PanelBase, FPSCameraController, GameController, TargetIconItem, EventCenter, UIManager, QingBaoPanel, SettingPanel, SdkMgr, AudioMgr, AssetController, LocalSaveMgr, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _class3, _crd, ccclass, property, PlayPanel;
|
||||
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Animation, AnimationComponent, Button, Color, HorizontalTextAlignment, instantiate, Label, Node, Prefab, randomRange, randomRangeInt, tween, UITransform, Vec2, Vec3, VerticalTextAlignment, PanelBase, FPSCameraController, GameController, TargetIconItem, EventCenter, UIManager, QingBaoPanel, SettingPanel, SdkMgr, AudioMgr, AssetController, LocalSaveMgr, LevelState, _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _dec16, _dec17, _dec18, _dec19, _dec20, _dec21, _dec22, _dec23, _dec24, _dec25, _dec26, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _class3, _crd, ccclass, property, PlayPanel;
|
||||
|
||||
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
||||
|
||||
@@ -61,6 +61,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
_reporterNs.report("LocalSaveMgr", "../framework/data/LocalSaveMgr", _context.meta, extras);
|
||||
}
|
||||
|
||||
function _reportPossibleCrUseOfLevelState(extras) {
|
||||
_reporterNs.report("LevelState", "../EnumFile", _context.meta, extras);
|
||||
}
|
||||
|
||||
return {
|
||||
setters: [function (_unresolved_) {
|
||||
_reporterNs = _unresolved_;
|
||||
@@ -72,6 +76,8 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
Animation = _cc.Animation;
|
||||
AnimationComponent = _cc.AnimationComponent;
|
||||
Button = _cc.Button;
|
||||
Color = _cc.Color;
|
||||
HorizontalTextAlignment = _cc.HorizontalTextAlignment;
|
||||
instantiate = _cc.instantiate;
|
||||
Label = _cc.Label;
|
||||
Node = _cc.Node;
|
||||
@@ -79,8 +85,10 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
randomRange = _cc.randomRange;
|
||||
randomRangeInt = _cc.randomRangeInt;
|
||||
tween = _cc.tween;
|
||||
UITransform = _cc.UITransform;
|
||||
Vec2 = _cc.Vec2;
|
||||
Vec3 = _cc.Vec3;
|
||||
VerticalTextAlignment = _cc.VerticalTextAlignment;
|
||||
}, function (_unresolved_2) {
|
||||
PanelBase = _unresolved_2.PanelBase;
|
||||
}, function (_unresolved_3) {
|
||||
@@ -105,13 +113,15 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
AssetController = _unresolved_12.AssetController;
|
||||
}, function (_unresolved_13) {
|
||||
LocalSaveMgr = _unresolved_13.LocalSaveMgr;
|
||||
}, function (_unresolved_14) {
|
||||
LevelState = _unresolved_14.LevelState;
|
||||
}],
|
||||
execute: function () {
|
||||
_crd = true;
|
||||
|
||||
_cclegacy._RF.push({}, "a66cdbq8WdFToV6aW4c47xh", "PlayPanel", undefined);
|
||||
|
||||
__checkObsolete__(['_decorator', 'animation', 'Animation', 'AnimationComponent', 'Button', 'Component', 'EventTouch', 'Input', 'input', 'instantiate', 'Label', 'math', 'Node', 'Prefab', 'randomRange', 'randomRangeInt', 'screen', 'Screen', 'tween', 'Vec2', 'Vec3', 'view']);
|
||||
__checkObsolete__(['_decorator', 'animation', 'Animation', 'AnimationComponent', 'Button', 'Color', 'Component', 'EventTouch', 'HorizontalTextAlignment', 'Input', 'input', 'instantiate', 'Label', 'math', 'Node', 'Prefab', 'randomRange', 'randomRangeInt', 'screen', 'Screen', 'tween', 'UITransform', 'Vec2', 'Vec3', 'VerticalTextAlignment', 'view']);
|
||||
|
||||
({
|
||||
ccclass,
|
||||
@@ -201,10 +211,75 @@ System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__
|
||||
this.qingBaoResultBtn.node.on(Button.EventType.CLICK, this.onClickQingBaoResult, this);
|
||||
this.saoMiao.node.on(Button.EventType.CLICK, this.onClickSaoMiao, this);
|
||||
this.setting.node.on(Button.EventType.CLICK, this.onClickSetting, this);
|
||||
this.createDeveloperButtons();
|
||||
(_crd && EventCenter === void 0 ? (_reportPossibleCrUseOfEventCenter({
|
||||
error: Error()
|
||||
}), EventCenter) : EventCenter).onEnemyDie.on(null, this.refreshTargetCount).bind(this);
|
||||
}
|
||||
/** 为测试关卡提供快捷操作,仅显示文字,避免与正式功能图标混淆。 */
|
||||
|
||||
|
||||
createDeveloperButtons() {
|
||||
this.createDeveloperButton('DEV_KillEnemies', '开发:杀死敌人', new Vec3(350, 830, 0), this.onClickDevKillEnemies);
|
||||
this.createDeveloperButton('DEV_CompleteLevel', '开发:完成过关', new Vec3(350, 760, 0), this.onClickDevCompleteLevel);
|
||||
}
|
||||
|
||||
createDeveloperButton(name, text, position, callback) {
|
||||
var buttonNode = new Node(name);
|
||||
buttonNode.name = name;
|
||||
buttonNode.layer = this.setting.node.layer;
|
||||
buttonNode.setParent(this.setting.node.parent);
|
||||
buttonNode.setPosition(position);
|
||||
buttonNode.addComponent(UITransform).setContentSize(220, 60);
|
||||
var button = buttonNode.addComponent(Button);
|
||||
var labelNode = new Node('Label');
|
||||
labelNode.layer = buttonNode.layer;
|
||||
labelNode.setParent(buttonNode);
|
||||
labelNode.addComponent(UITransform).setContentSize(220, 60);
|
||||
var label = labelNode.addComponent(Label);
|
||||
label.string = text;
|
||||
label.fontSize = 24;
|
||||
label.lineHeight = 32;
|
||||
label.color = new Color(255, 220, 90, 255);
|
||||
label.horizontalAlign = HorizontalTextAlignment.CENTER;
|
||||
label.verticalAlign = VerticalTextAlignment.CENTER;
|
||||
button.node.on(Button.EventType.CLICK, callback, this);
|
||||
}
|
||||
|
||||
onClickDevKillEnemies() {
|
||||
var level = (_crd && GameController === void 0 ? (_reportPossibleCrUseOfGameController({
|
||||
error: Error()
|
||||
}), GameController) : GameController).getInstance().curLevel;
|
||||
if (level.levelState !== (_crd && LevelState === void 0 ? (_reportPossibleCrUseOfLevelState({
|
||||
error: Error()
|
||||
}), LevelState) : LevelState).Running) return;
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
error: Error()
|
||||
}), AudioMgr) : AudioMgr).inst.playOneShot((_crd && AssetController === void 0 ? (_reportPossibleCrUseOfAssetController({
|
||||
error: Error()
|
||||
}), AssetController) : AssetController).instance.click);
|
||||
|
||||
for (var enemy of level.enemies) {
|
||||
if (!enemy.isDie) {
|
||||
enemy.setEnabled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onClickDevCompleteLevel() {
|
||||
var level = (_crd && GameController === void 0 ? (_reportPossibleCrUseOfGameController({
|
||||
error: Error()
|
||||
}), GameController) : GameController).getInstance().curLevel;
|
||||
if (level.levelState !== (_crd && LevelState === void 0 ? (_reportPossibleCrUseOfLevelState({
|
||||
error: Error()
|
||||
}), LevelState) : LevelState).Running) return;
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
error: Error()
|
||||
}), AudioMgr) : AudioMgr).inst.playOneShot((_crd && AssetController === void 0 ? (_reportPossibleCrUseOfAssetController({
|
||||
error: Error()
|
||||
}), AssetController) : AssetController).instance.click);
|
||||
level.win();
|
||||
}
|
||||
|
||||
onClickSetting() {
|
||||
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -195,6 +195,7 @@
|
||||
"__unresolved_10": "./chunks/17/17c15c9f91cab21852afabf06f526d531a818ca5.js",
|
||||
"__unresolved_11": "./chunks/14/140dc6bd476739f3eb222d0c65eda1306239d6c5.js",
|
||||
"__unresolved_12": "./chunks/a9/a912ccf8538595758f48834d371e876268f35154.js",
|
||||
"__unresolved_13": "./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js",
|
||||
"__unresolved_2": "./chunks/06/067be96b86fad6e644289c720d9d23738f4ed87c.js",
|
||||
"__unresolved_3": "./chunks/75/7503fea72389d78b642c3a8f8e1395d3734a9d16.js",
|
||||
"__unresolved_4": "./chunks/3e/3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf.js",
|
||||
@@ -234,6 +235,9 @@
|
||||
"./chunks/3e/3e6e47d30b1f7141ff9f130754ef3e0c08b4f2cf.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/cc/cce2d64bf43cd827ad5c0d87dcb166b068a41ba8.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/b8/b84580597e9cababc38b7a3ce49a27f22d6f0abe.js",
|
||||
@@ -259,9 +263,6 @@
|
||||
"__unresolved_6": "./chunks/39/398d00769bffaa6da8f5ea12e7941d4a67eac52a.js",
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/dd/dd9b18077e2f673e16c18254c48f641a27848de5.js": {
|
||||
"cc": "./chunks/93/93ba276ea7b26ffcdc433fab14afc1ed6f05647b.js"
|
||||
},
|
||||
"./chunks/ba/bace070c537a3e1854e903015145470ccbad65f3.js": {
|
||||
"__unresolved_0": "./chunks/6a/6a5019a719a9014c047e67aa1cf34453ab8392ce.js",
|
||||
"__unresolved_1": "./chunks/63/63a64431b6b21cd924e8e7464d636fa810675c73.js",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"modules": {
|
||||
"cce:/internal/x/cc": {
|
||||
"mTimestamp": 7006.567699998617,
|
||||
"mTimestamp": 7404.858399987221,
|
||||
"chunkId": "93ba276ea7b26ffcdc433fab14afc1ed6f05647b",
|
||||
"imports": [
|
||||
{
|
||||
@@ -325,7 +325,7 @@
|
||||
]
|
||||
},
|
||||
"cce:/internal/x/prerequisite-imports": {
|
||||
"mTimestamp": 8820.538499999791,
|
||||
"mTimestamp": 9595.427999988198,
|
||||
"chunkId": "6d8fd2b0177941b032ddc0733af48a561fb60657",
|
||||
"imports": [
|
||||
{
|
||||
@@ -1268,7 +1268,7 @@
|
||||
]
|
||||
},
|
||||
"cce:/internal/code-quality/cr.mjs": {
|
||||
"mTimestamp": 1784106525646,
|
||||
"mTimestamp": 1784168716609,
|
||||
"chunkId": "6a5019a719a9014c047e67aa1cf34453ab8392ce",
|
||||
"imports": [],
|
||||
"type": "esm",
|
||||
@@ -3319,7 +3319,7 @@
|
||||
},
|
||||
"file:///D:/Users/admin/Alien_Sniper/assets/scripts/ui/PlayPanel.ts": {
|
||||
"mTimestamp": {
|
||||
"mtime": 1784085527195.843,
|
||||
"mtime": 1784168397523.1873,
|
||||
"uuid": "a66cd6ea-f167-454e-857a-696e1ce3bc61"
|
||||
},
|
||||
"chunkId": "f3d2c0c32b5bda2d3627fc340699129d1ecef51f",
|
||||
@@ -3339,11 +3339,11 @@
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 224
|
||||
"column": 292
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 228
|
||||
"column": 296
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -3514,6 +3514,20 @@
|
||||
"column": 61
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"value": "../EnumFile",
|
||||
"resolved": "__unresolved_13",
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 15,
|
||||
"column": 27
|
||||
},
|
||||
"end": {
|
||||
"line": 15,
|
||||
"column": 40
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "esm",
|
||||
@@ -3629,6 +3643,13 @@
|
||||
"url": "file:///D:/Users/admin/Alien_Sniper/assets/scripts/framework/data/LocalSaveMgr.ts"
|
||||
},
|
||||
"messages": []
|
||||
},
|
||||
{
|
||||
"resolved": {
|
||||
"type": "module",
|
||||
"url": "file:///D:/Users/admin/Alien_Sniper/assets/scripts/EnumFile.ts"
|
||||
},
|
||||
"messages": []
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"pid":20332}
|
||||
{"pid":11816}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"module": "ES2015",
|
||||
"strict": true,
|
||||
"types": [
|
||||
"./temp/declarations/cc.custom-macro",
|
||||
"./temp/declarations/cc",
|
||||
"./temp/declarations/cc.custom-macro",
|
||||
"./temp/declarations/jsb",
|
||||
"./temp/declarations/cc.env"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user