| | |
| | | "__id__": 14 |
| | | }, |
| | | { |
| | | "__id__": 18 |
| | | "__id__": 22 |
| | | }, |
| | | { |
| | | "__id__": 20 |
| | | "__id__": 26 |
| | | }, |
| | | { |
| | | "__id__": 28 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 53 |
| | | "__id__": 61 |
| | | }, |
| | | { |
| | | "__id__": 54 |
| | | "__id__": 62 |
| | | }, |
| | | { |
| | | "__id__": 55 |
| | | "__id__": 63 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | }, |
| | | "_contentSize": { |
| | | "__type__": "cc.Size", |
| | | "width": 103, |
| | | "height": 103 |
| | | "width": 60, |
| | | "height": 60 |
| | | }, |
| | | "_anchorPoint": { |
| | | "__type__": "cc.Vec2", |
| | |
| | | "ctor": "Float64Array", |
| | | "array": [ |
| | | 0, |
| | | -254.938, |
| | | -250, |
| | | 0, |
| | | 0, |
| | | 0, |
| | |
| | | "__uuid__": "d9b98963-043e-4ed3-9d95-c0a2fe531c6f" |
| | | }, |
| | | "_type": 0, |
| | | "_sizeMode": 1, |
| | | "_sizeMode": 0, |
| | | "_fillType": 0, |
| | | "_fillCenter": { |
| | | "__type__": "cc.Vec2", |
| | |
| | | }, |
| | | { |
| | | "__type__": "cc.Node", |
| | | "_name": "title_bg", |
| | | "_name": "ButtonStartGame", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 5 |
| | |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 20 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | | "_opacity": 255, |
| | | "_color": { |
| | | "__type__": "cc.Color", |
| | | "r": 255, |
| | | "g": 255, |
| | | "b": 255, |
| | | "a": 255 |
| | | }, |
| | | "_contentSize": { |
| | | "__type__": "cc.Size", |
| | | "width": 180, |
| | | "height": 70 |
| | | }, |
| | | "_anchorPoint": { |
| | | "__type__": "cc.Vec2", |
| | | "x": 0.5, |
| | | "y": 0.5 |
| | | }, |
| | | "_trs": { |
| | | "__type__": "TypedArray", |
| | | "ctor": "Float64Array", |
| | | "array": [ |
| | | 0, |
| | | -250, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 1, |
| | | 1, |
| | | 1, |
| | | 1 |
| | | ] |
| | | }, |
| | | "_eulerAngles": { |
| | | "__type__": "cc.Vec3", |
| | | "x": 0, |
| | | "y": 0, |
| | | "z": 0 |
| | | }, |
| | | "_skewX": 0, |
| | | "_skewY": 0, |
| | | "_is3DNode": false, |
| | | "_groupIndex": 0, |
| | | "groupIndex": 0, |
| | | "_id": "f0YHKK2LFPFZyvxbMFOgjS" |
| | | }, |
| | | { |
| | | "__type__": "cc.Node", |
| | | "_name": "Background", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 14 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 16 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 18 |
| | | }, |
| | | { |
| | | "__id__": 19 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | | "_opacity": 255, |
| | | "_color": { |
| | | "__type__": "cc.Color", |
| | | "r": 0, |
| | | "g": 116, |
| | | "b": 220, |
| | | "a": 255 |
| | | }, |
| | | "_contentSize": { |
| | | "__type__": "cc.Size", |
| | | "width": 180, |
| | | "height": 70 |
| | | }, |
| | | "_anchorPoint": { |
| | | "__type__": "cc.Vec2", |
| | | "x": 0.5, |
| | | "y": 0.5 |
| | | }, |
| | | "_trs": { |
| | | "__type__": "TypedArray", |
| | | "ctor": "Float64Array", |
| | | "array": [ |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 1, |
| | | 1, |
| | | 1, |
| | | 0 |
| | | ] |
| | | }, |
| | | "_eulerAngles": { |
| | | "__type__": "cc.Vec3", |
| | | "x": 0, |
| | | "y": 0, |
| | | "z": 0 |
| | | }, |
| | | "_skewX": 0, |
| | | "_skewY": 0, |
| | | "_is3DNode": false, |
| | | "_groupIndex": 0, |
| | | "groupIndex": 0, |
| | | "_id": "afDeN7Y3JPCa4T6ILl2mqq" |
| | | }, |
| | | { |
| | | "__type__": "cc.Node", |
| | | "_name": "Label", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 15 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 17 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | | "_opacity": 255, |
| | | "_color": { |
| | | "__type__": "cc.Color", |
| | | "r": 0, |
| | | "g": 0, |
| | | "b": 0, |
| | | "a": 255 |
| | | }, |
| | | "_contentSize": { |
| | | "__type__": "cc.Size", |
| | | "width": 140, |
| | | "height": 56.7 |
| | | }, |
| | | "_anchorPoint": { |
| | | "__type__": "cc.Vec2", |
| | | "x": 0.5, |
| | | "y": 0.5 |
| | | }, |
| | | "_trs": { |
| | | "__type__": "TypedArray", |
| | | "ctor": "Float64Array", |
| | | "array": [ |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 1, |
| | | 1, |
| | | 1, |
| | | 1 |
| | | ] |
| | | }, |
| | | "_eulerAngles": { |
| | | "__type__": "cc.Vec3", |
| | | "x": 0, |
| | | "y": 0, |
| | | "z": 0 |
| | | }, |
| | | "_skewX": 0, |
| | | "_skewY": 0, |
| | | "_is3DNode": false, |
| | | "_groupIndex": 0, |
| | | "groupIndex": 0, |
| | | "_id": "d7onLoEKpFcJ2znGZPdDhI" |
| | | }, |
| | | { |
| | | "__type__": "cc.Label", |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 16 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | | { |
| | | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" |
| | | } |
| | | ], |
| | | "_srcBlendFactor": 770, |
| | | "_dstBlendFactor": 771, |
| | | "_string": "开始游戏", |
| | | "_N$string": "开始游戏", |
| | | "_fontSize": 35, |
| | | "_lineHeight": 45, |
| | | "_enableWrapText": false, |
| | | "_N$file": null, |
| | | "_isSystemFontUsed": true, |
| | | "_spacingX": 0, |
| | | "_batchAsBitmap": false, |
| | | "_styleFlags": 0, |
| | | "_underlineHeight": 0, |
| | | "_N$horizontalAlign": 1, |
| | | "_N$verticalAlign": 1, |
| | | "_N$fontFamily": "Arial", |
| | | "_N$overflow": 0, |
| | | "_N$cacheMode": 1, |
| | | "_id": "c4ah6Wr/hP76ejoauVJ/vP" |
| | | }, |
| | | { |
| | | "__type__": "cc.Sprite", |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 15 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | | { |
| | | "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" |
| | | } |
| | | ], |
| | | "_srcBlendFactor": 770, |
| | | "_dstBlendFactor": 771, |
| | | "_spriteFrame": { |
| | | "__uuid__": "410fb916-8721-4663-bab8-34397391ace7" |
| | | }, |
| | | "_type": 1, |
| | | "_sizeMode": 0, |
| | | "_fillType": 0, |
| | | "_fillCenter": { |
| | | "__type__": "cc.Vec2", |
| | | "x": 0, |
| | | "y": 0 |
| | | }, |
| | | "_fillStart": 0, |
| | | "_fillRange": 0, |
| | | "_isTrimmedMode": true, |
| | | "_atlas": null, |
| | | "_id": "10122AutJEd6hnzXiwdots" |
| | | }, |
| | | { |
| | | "__type__": "cc.Widget", |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 15 |
| | | }, |
| | | "_enabled": true, |
| | | "alignMode": 0, |
| | | "_target": null, |
| | | "_alignFlags": 45, |
| | | "_left": 0, |
| | | "_right": 0, |
| | | "_top": 0, |
| | | "_bottom": 0, |
| | | "_verticalCenter": 0, |
| | | "_horizontalCenter": 0, |
| | | "_isAbsLeft": true, |
| | | "_isAbsRight": true, |
| | | "_isAbsTop": true, |
| | | "_isAbsBottom": true, |
| | | "_isAbsHorizontalCenter": true, |
| | | "_isAbsVerticalCenter": true, |
| | | "_originalWidth": 100, |
| | | "_originalHeight": 40, |
| | | "_id": "00Bn3YAL5AdZ6qDnhWzlt2" |
| | | }, |
| | | { |
| | | "__type__": "cc.Button", |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 14 |
| | | }, |
| | | "_enabled": true, |
| | | "_normalMaterial": null, |
| | | "_grayMaterial": null, |
| | | "duration": 0.1, |
| | | "zoomScale": 1.2, |
| | | "clickEvents": [ |
| | | { |
| | | "__id__": 21 |
| | | } |
| | | ], |
| | | "_N$interactable": true, |
| | | "_N$enableAutoGrayEffect": false, |
| | | "_N$transition": 3, |
| | | "transition": 3, |
| | | "_N$normalColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 230, |
| | | "g": 230, |
| | | "b": 230, |
| | | "a": 255 |
| | | }, |
| | | "_N$pressedColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 200, |
| | | "g": 200, |
| | | "b": 200, |
| | | "a": 255 |
| | | }, |
| | | "pressedColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 200, |
| | | "g": 200, |
| | | "b": 200, |
| | | "a": 255 |
| | | }, |
| | | "_N$hoverColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 255, |
| | | "g": 255, |
| | | "b": 255, |
| | | "a": 255 |
| | | }, |
| | | "hoverColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 255, |
| | | "g": 255, |
| | | "b": 255, |
| | | "a": 255 |
| | | }, |
| | | "_N$disabledColor": { |
| | | "__type__": "cc.Color", |
| | | "r": 120, |
| | | "g": 120, |
| | | "b": 120, |
| | | "a": 200 |
| | | }, |
| | | "_N$normalSprite": null, |
| | | "_N$pressedSprite": { |
| | | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" |
| | | }, |
| | | "pressedSprite": { |
| | | "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" |
| | | }, |
| | | "_N$hoverSprite": { |
| | | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" |
| | | }, |
| | | "hoverSprite": { |
| | | "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" |
| | | }, |
| | | "_N$disabledSprite": { |
| | | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" |
| | | }, |
| | | "_N$target": { |
| | | "__id__": 15 |
| | | }, |
| | | "_id": "18SxC468ZMGZBXuhvwRknS" |
| | | }, |
| | | { |
| | | "__type__": "cc.ClickEvent", |
| | | "target": { |
| | | "__id__": 5 |
| | | }, |
| | | "component": "", |
| | | "_componentId": "af275ecUXVIvryJqHF/oRNF", |
| | | "handler": "onClickStartGame", |
| | | "customEventData": "" |
| | | }, |
| | | { |
| | | "__type__": "cc.Node", |
| | | "_name": "title_bg", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 5 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 23 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 25 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Bricks", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 14 |
| | | "__id__": 22 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 16 |
| | | "__id__": 24 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 15 |
| | | "__id__": 23 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 14 |
| | | "__id__": 22 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 19 |
| | | "__id__": 27 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_contentSize": { |
| | | "__type__": "cc.Size", |
| | | "width": 640, |
| | | "height": 200 |
| | | "height": 260 |
| | | }, |
| | | "_anchorPoint": { |
| | | "__type__": "cc.Vec2", |
| | |
| | | "ctor": "Float64Array", |
| | | "array": [ |
| | | 0, |
| | | -504.872, |
| | | -489.083, |
| | | 0, |
| | | 0, |
| | | 0, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 18 |
| | | "__id__": 26 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | ], |
| | | "_srcBlendFactor": 770, |
| | | "_dstBlendFactor": 771, |
| | | "_string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。", |
| | | "_N$string": "抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。", |
| | | "_string": "健康游戏忠告\n抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。\n\n著作权人:上海秦巢信息科技有限公司\n登 记 号: 2021SR0733584\n\n本游戏为单机游戏, 一旦清除缓存游戏数据将丢失", |
| | | "_N$string": "健康游戏忠告\n抵制不良游戏,拒绝盗版游戏。\n注意自我保护,谨防受骗上当。\n适度游戏益脑,沉迷游戏伤身。\n合理安排时间,享受健康生活。\n\n著作权人:上海秦巢信息科技有限公司\n登 记 号: 2021SR0733584\n\n本游戏为单机游戏, 一旦清除缓存游戏数据将丢失", |
| | | "_fontSize": 36, |
| | | "_lineHeight": 42, |
| | | "_enableWrapText": false, |
| | |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 51 |
| | | "__id__": 59 |
| | | }, |
| | | { |
| | | "__id__": 52 |
| | | "__id__": 60 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "white_bg", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 20 |
| | | "__id__": 28 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 22 |
| | | }, |
| | | { |
| | | "__id__": 24 |
| | | }, |
| | | { |
| | | "__id__": 26 |
| | | }, |
| | | { |
| | | "__id__": 30 |
| | | }, |
| | | { |
| | | "__id__": 32 |
| | | }, |
| | | { |
| | | "__id__": 34 |
| | | }, |
| | | { |
| | | "__id__": 38 |
| | | }, |
| | | { |
| | | "__id__": 42 |
| | | }, |
| | | { |
| | | "__id__": 50 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 50 |
| | | "__id__": 58 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Title", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 23 |
| | | "__id__": 31 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 22 |
| | | "__id__": 30 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "New Label", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 25 |
| | | "__id__": 33 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 24 |
| | | "__id__": 32 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "New Label", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 27 |
| | | "__id__": 35 |
| | | }, |
| | | { |
| | | "__id__": 28 |
| | | "__id__": 36 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 26 |
| | | "__id__": 34 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 26 |
| | | "__id__": 34 |
| | | }, |
| | | "_enabled": true, |
| | | "_normalMaterial": null, |
| | |
| | | "zoomScale": 1.2, |
| | | "clickEvents": [ |
| | | { |
| | | "__id__": 29 |
| | | "__id__": 37 |
| | | } |
| | | ], |
| | | "_N$interactable": true, |
| | |
| | | "_name": "New Label copy", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 31 |
| | | "__id__": 39 |
| | | }, |
| | | { |
| | | "__id__": 32 |
| | | "__id__": 40 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 30 |
| | | "__id__": 38 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 30 |
| | | "__id__": 38 |
| | | }, |
| | | "_enabled": true, |
| | | "_normalMaterial": null, |
| | |
| | | "zoomScale": 1.2, |
| | | "clickEvents": [ |
| | | { |
| | | "__id__": 33 |
| | | "__id__": 41 |
| | | } |
| | | ], |
| | | "_N$interactable": true, |
| | |
| | | "_name": "ButtonCancel", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 35 |
| | | "__id__": 43 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 40 |
| | | "__id__": 48 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Background", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 34 |
| | | "__id__": 42 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 36 |
| | | "__id__": 44 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 38 |
| | | "__id__": 46 |
| | | }, |
| | | { |
| | | "__id__": 39 |
| | | "__id__": 47 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Label", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 35 |
| | | "__id__": 43 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 37 |
| | | "__id__": 45 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 36 |
| | | "__id__": 44 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 35 |
| | | "__id__": 43 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 35 |
| | | "__id__": 43 |
| | | }, |
| | | "_enabled": true, |
| | | "alignMode": 0, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 34 |
| | | "__id__": 42 |
| | | }, |
| | | "_enabled": true, |
| | | "_normalMaterial": null, |
| | |
| | | "zoomScale": 1.2, |
| | | "clickEvents": [ |
| | | { |
| | | "__id__": 41 |
| | | "__id__": 49 |
| | | } |
| | | ], |
| | | "_N$interactable": true, |
| | |
| | | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" |
| | | }, |
| | | "_N$target": { |
| | | "__id__": 35 |
| | | "__id__": 43 |
| | | }, |
| | | "_id": "49uWVwDf1KkJr2mVBRKYsB" |
| | | }, |
| | |
| | | "_name": "ButtonAgree", |
| | | "_objFlags": 0, |
| | | "_parent": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 43 |
| | | "__id__": 51 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 48 |
| | | "__id__": 56 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Background", |
| | | "_objFlags": 512, |
| | | "_parent": { |
| | | "__id__": 42 |
| | | "__id__": 50 |
| | | }, |
| | | "_children": [ |
| | | { |
| | | "__id__": 44 |
| | | "__id__": 52 |
| | | } |
| | | ], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 46 |
| | | "__id__": 54 |
| | | }, |
| | | { |
| | | "__id__": 47 |
| | | "__id__": 55 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "Label", |
| | | "_objFlags": 512, |
| | | "_parent": { |
| | | "__id__": 43 |
| | | "__id__": 51 |
| | | }, |
| | | "_children": [], |
| | | "_active": true, |
| | | "_components": [ |
| | | { |
| | | "__id__": 45 |
| | | "__id__": 53 |
| | | } |
| | | ], |
| | | "_prefab": null, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 44 |
| | | "__id__": 52 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 43 |
| | | "__id__": 51 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 43 |
| | | "__id__": 51 |
| | | }, |
| | | "_enabled": true, |
| | | "alignMode": 0, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 42 |
| | | "__id__": 50 |
| | | }, |
| | | "_enabled": true, |
| | | "_normalMaterial": null, |
| | |
| | | "zoomScale": 1.2, |
| | | "clickEvents": [ |
| | | { |
| | | "__id__": 49 |
| | | "__id__": 57 |
| | | } |
| | | ], |
| | | "_N$interactable": true, |
| | |
| | | "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" |
| | | }, |
| | | "_N$target": { |
| | | "__id__": 43 |
| | | "__id__": 51 |
| | | }, |
| | | "_id": "62CS7ZwsJLEJGy27INo7cr" |
| | | }, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 21 |
| | | "__id__": 29 |
| | | }, |
| | | "_enabled": true, |
| | | "_materials": [ |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 20 |
| | | "__id__": 28 |
| | | }, |
| | | "_enabled": true, |
| | | "alignMode": 1, |
| | |
| | | "_name": "", |
| | | "_objFlags": 0, |
| | | "node": { |
| | | "__id__": 20 |
| | | "__id__": 28 |
| | | }, |
| | | "_enabled": true, |
| | | "_id": "a5nVWFNBhKXIbLh/UFwOzY" |
| | |
| | | "_enabled": true, |
| | | "nextSceneName": "main", |
| | | "ppNode": { |
| | | "__id__": 20 |
| | | "__id__": 28 |
| | | }, |
| | | "buttonAgree": { |
| | | "__id__": 48 |
| | | "__id__": 56 |
| | | }, |
| | | "buttonCancel": { |
| | | "__id__": 40 |
| | | "__id__": 48 |
| | | }, |
| | | "buttonStartGame": { |
| | | "__id__": 20 |
| | | }, |
| | | "_id": "b0zOp8p9hF4Ycu6q7wt0hZ" |
| | | }, |
| | |
| | | import { Sdk } from "./Sdk/Sdk"; |
| | | import { SdkToutiao } from "./Sdk/SdkToutiao"; |
| | | import DataTool from "./Sdk/DataTool"; |
| | | import Global from "./Global"; |
| | | |
| | | const { ccclass, property } = cc._decorator; |
| | | |
| | |
| | | @property(cc.Button) |
| | | buttonCancel: cc.Button = null; |
| | | |
| | | @property(cc.Button) |
| | | buttonStartGame: cc.Button = null; |
| | | |
| | | onLoad() { |
| | | cc.game.setFrameRate(60.01); |
| | | |
| | | this.ppNode.active = false; |
| | | this.buttonStartGame.node.active = false; |
| | | } |
| | | |
| | | start() { |
| | |
| | | Userdata.loadUserdata(() => { |
| | | this.scheduleOnce(() => { |
| | | this.openPrivacyPolicy(); |
| | | }, 1); |
| | | }, 2); |
| | | |
| | | }); |
| | | } else { |
| | |
| | | |
| | | startGame() { |
| | | if (Sdk.isHuawei) { |
| | | Sdk.ins.startGame(() => { |
| | | Sdk.ins.startGame((result) => { |
| | | if (result) {//自动登录成功 |
| | | cc.director.loadScene(this.nextSceneName); |
| | | } else {//显示开始游戏按钮 |
| | | this.buttonStartGame.node.active = true; |
| | | this.ppNode.active = false; |
| | | } |
| | | }); |
| | | } else { |
| | | cc.director.loadScene(this.nextSceneName); |
| | |
| | | |
| | | this.startGame(); |
| | | } |
| | | |
| | | onClickStartGame() { |
| | | Global.debounceClicks(() => { |
| | | this.startGame(); |
| | | })(); |
| | | } |
| | | } |
| | |
| | | success: (data) => { |
| | | // 登录成功后,可以存储账号信息。 |
| | | console.log(" game login with real success:" + JSON.stringify(data)); |
| | | cb && cb(); |
| | | cb && cb(true); |
| | | |
| | | this.lastShowInterAdTime = Date.now(); |
| | | this.getOAID(); |
| | | |
| | | this.reLoadVideo(); |
| | |
| | | //此时,建议返回游戏界面,可以让玩家重新进行登录操作。 |
| | | if (code == 7004 || code == 2012) { |
| | | console.log("玩家取消登录,返回游戏界面让玩家重新登录。"); |
| | | cc.director.loadScene('logo'); |
| | | // cc.director.loadScene('logo'); |
| | | cb && cb(false); |
| | | } else |
| | | //状态码为7021表示玩家取消实名认证。 |
| | | //在中国大陆的情况下,此时需要禁止玩家进入游戏。 |
| | | if (code == 7021) { |
| | | console.log("The player has canceled identity verification. Forbid the player from entering the game.") |
| | | cc.director.loadScene('logo'); |
| | | // cc.director.loadScene('logo'); |
| | | cc.game.end(); |
| | | } else { |
| | | cc.game.end(); |
| | | } |
| | |
| | | //Ads |
| | | showInterAd() { |
| | | cc.log('show InterAd'); |
| | | // if (Date.now() - this.lastShowInterAdTime > 30000) {//最少间隔30秒 |
| | | // this.lastShowInterAdTime = Date.now(); |
| | | |
| | | |
| | | // } |
| | | if (Date.now() - this.lastShowInterAdTime > 40000) {//最少间隔40秒 |
| | | this.lastShowInterAdTime = Date.now(); |
| | | |
| | | this.loadInterAd(); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | // cb && cb(true); |
| | | |
| | | rewardCallback = cb; |
| | | this.lastShowInterAdTime = Date.now(); |
| | | this.rewardedVideoAd.show(); |
| | | this.rewardedVideoAd.load(); |
| | | } |