Commit 5d80f2eb authored by Nguyễn Quang Sáng's avatar Nguyễn Quang Sáng

31/8/2023 commit

parent 15197a2b
......@@ -36,7 +36,7 @@
"__id__": 37
},
{
"__id__": 43
"__id__": 42
}
],
"_active": true,
......@@ -110,7 +110,7 @@
}
],
"_prefab": {
"__id__": 42
"__id__": 47
},
"_opacity": 255,
"_color": {
......@@ -194,7 +194,7 @@
"__id__": 37
},
{
"__id__": 37
"__id__": 42
}
],
"_id": ""
......@@ -1573,17 +1573,6 @@
"fileId": "6dw+X1s/BNrJ7KUEmh6HWf",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5dIbugedtGkbbo5t9KBiGM",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Brick copy",
......@@ -1595,17 +1584,17 @@
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 43
},
{
"__id__": 45
"__id__": 44
},
{
"__id__": 46
"__id__": 45
}
],
"_prefab": {
"__id__": 47
"__id__": 46
},
"_opacity": 255,
"_color": {
......@@ -1659,7 +1648,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"_materials": [
......@@ -1691,7 +1680,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"_type": 0,
......@@ -1716,7 +1705,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 42
},
"_enabled": true,
"tag": 0,
......@@ -1740,7 +1729,7 @@
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 43
"__id__": 42
},
"asset": {
"__uuid__": "3ef9ce8f-791c-430c-b1f8-ec3703b0ae18"
......@@ -1748,6 +1737,17 @@
"fileId": "123R1K5a1AdpWM7of9ETpf",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "5dIbugedtGkbbo5t9KBiGM",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
......
......@@ -521,8 +521,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-80.258,
28.22,
-96.224,
27.973,
0,
0,
0,
......@@ -698,8 +698,8 @@
},
{
"__type__": "cc.Vec2",
"x": 29.3,
"y": 44.9
"x": 32,
"y": 47.6
},
{
"__type__": "cc.Vec2",
......@@ -708,8 +708,8 @@
},
{
"__type__": "cc.Vec2",
"x": -27.2,
"y": 42.6
"x": -29.4,
"y": 45.7
},
{
"__type__": "cc.Vec2",
......@@ -732,7 +732,7 @@
"asset": {
"__uuid__": "c3f6df06-c0ad-4e83-999f-c26983a694bc"
},
"fileId": "87uLwgP5BPuYxg9RaYmras",
"fileId": "621Sp7TO1L94et3Vz7Xbp5",
"sync": false
},
{
......@@ -957,7 +957,7 @@
"__uuid__": "7c6aebf9-b0b0-4ee0-9a19-c3b7e1828a7f"
},
"dog": {
"__id__": 11
"__id__": 4
},
"_id": ""
},
......@@ -1194,7 +1194,7 @@
"__uuid__": "7c6aebf9-b0b0-4ee0-9a19-c3b7e1828a7f"
},
"dog": {
"__id__": 4
"__id__": 11
},
"_id": ""
},
......@@ -1966,7 +1966,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-78.574,
-95.388,
-74.388,
0,
0,
......
{
"ver": "2.3.7",
"uuid": "9773919c-689f-4327-bf0a-a2cad99806fe",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 190,
"height": 115,
"platformSettings": {},
"subMetas": {
"adsense": {
"ver": "1.0.6",
"uuid": "57b3fb4b-15db-4c36-92d9-32b4867b485f",
"importer": "sprite-frame",
"rawTextureUuid": "9773919c-689f-4327-bf0a-a2cad99806fe",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 190,
"height": 115,
"rawWidth": 190,
"rawHeight": 115,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "c5ea459a-d4f8-44e4-9211-a95e4f22f7cc",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 334,
"height": 133,
"platformSettings": {},
"subMetas": {
"button_double_collect": {
"ver": "1.0.6",
"uuid": "8529c74e-df6d-4d3f-83fd-2885260563af",
"importer": "sprite-frame",
"rawTextureUuid": "c5ea459a-d4f8-44e4-9211-a95e4f22f7cc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 334,
"height": 133,
"rawWidth": 334,
"rawHeight": 133,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
......@@ -84,16 +84,16 @@
"__id__": 13
},
{
"__id__": 84
"__id__": 94
},
{
"__id__": 16
},
{
"__id__": 86
"__id__": 96
},
{
"__id__": 90
"__id__": 100
},
{
"__id__": 19
......@@ -105,16 +105,22 @@
"__id__": 59
},
{
"__id__": 94
"__id__": 87
},
{
"__id__": 90
},
{
"__id__": 104
}
],
"_active": true,
"_components": [
{
"__id__": 98
"__id__": 108
},
{
"__id__": 99
"__id__": 109
}
],
"_prefab": null,
......@@ -625,7 +631,7 @@
"__id__": 14
},
{
"__id__": 83
"__id__": 93
}
],
"_prefab": null,
......@@ -802,8 +808,14 @@
"levelComp": {
"__id__": 59
},
"adsBgr": {
"__id__": 87
},
"notiLabel": {
"__id__": 90
},
"rewardSprite": {
"__id__": 77
"__id__": 81
},
"shadow": {
"__id__": 35
......@@ -888,7 +900,7 @@
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
}
],
"_lineWidth": 15,
"_lineWidth": 14,
"_strokeColor": {
"__type__": "cc.Color",
"r": 0,
......@@ -2733,10 +2745,10 @@
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 85
},
{
"__id__": 82
"__id__": 86
}
],
"_prefab": null,
......@@ -2813,17 +2825,20 @@
{
"__id__": 75
},
{
"__id__": 79
},
{
"__id__": 58
},
{
"__id__": 77
"__id__": 81
}
],
"_active": false,
"_components": [
{
"__id__": 80
"__id__": 84
}
],
"_prefab": null,
......@@ -3361,7 +3376,7 @@
"ctor": "Float64Array",
"array": [
0,
-242.753,
-159.309,
0,
0,
0,
......@@ -3501,7 +3516,7 @@
},
{
"__type__": "cc.Node",
"_name": "Star",
"_name": "ButtonDoubleCollect",
"_objFlags": 0,
"_parent": {
"__id__": 59
......@@ -3511,6 +3526,185 @@
"_components": [
{
"__id__": 76
},
{
"__id__": 77
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 312,
"height": 120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
18,
-310,
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": "2aEFBfK89MvrmK/NiFjC1g"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8529c74e-df6d-4d3f-83fd-2885260563af"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0aNzZXA49KYYLdzhDp77xG"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 78
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "feDwtQGp1I2Lnw0HPnmNPg"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 13
},
"component": "",
"_componentId": "696e4NRFAZMOL+y2DX8K7V0",
"handler": "onPlayerClickAds",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "Star",
"_objFlags": 0,
"_parent": {
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 80
}
],
"_prefab": null,
......@@ -3566,7 +3760,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -3604,10 +3798,10 @@
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 82
},
{
"__id__": 79
"__id__": 83
}
],
"_prefab": null,
......@@ -3663,7 +3857,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 81
},
"_enabled": true,
"_materials": [
......@@ -3695,7 +3889,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 81
},
"_enabled": true,
"_defaultClip": {
......@@ -3789,6 +3983,248 @@
"_width": 2,
"_id": "c8CzbLgtZF4Z4CfzHvLiQE"
},
{
"__type__": "cc.Node",
"_name": "AdsBgr",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 88
},
{
"__id__": 89
}
],
"_prefab": null,
"_opacity": 150,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 1140
},
"_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": "d0xI9rL6BLipC4gu/jyQre"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 0,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "230Zs3aVZFK6CchZZH3giU"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 87
},
"_enabled": true,
"alignMode": 1,
"_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": 640,
"_originalHeight": 1140,
"_id": "95uxcDfZBJkpx19v7QMn7c"
},
{
"__type__": "cc.Node",
"_name": "NotiLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 91
},
{
"__id__": 92
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 284.08,
"height": 67
},
"_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": "4cMAA4LOlF0LRN8m7Z8N6f"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Notification",
"_N$string": "Notification",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "0481a3d3-282a-499e-b2f1-c53edc40ac4c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "09qm0EvAxGp7U6TXNARO5F"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": "afr+WPSDxH14tm3ICyOsPT"
},
{
"__type__": "cc.Widget",
"_name": "",
......@@ -3827,7 +4263,7 @@
"_active": true,
"_components": [
{
"__id__": 85
"__id__": 95
}
],
"_prefab": null,
......@@ -3883,7 +4319,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
"__id__": 94
},
"_enabled": true,
"alignMode": 1,
......@@ -3916,13 +4352,13 @@
"_active": true,
"_components": [
{
"__id__": 87
"__id__": 97
},
{
"__id__": 88
"__id__": 98
},
{
"__id__": 89
"__id__": 99
}
],
"_prefab": null,
......@@ -3978,7 +4414,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
"__id__": 96
},
"_enabled": true,
"_type": 0,
......@@ -4003,7 +4439,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
"__id__": 96
},
"_enabled": true,
"tag": 0,
......@@ -4029,7 +4465,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 86
"__id__": 96
},
"_enabled": true,
"alignMode": 1,
......@@ -4062,13 +4498,13 @@
"_active": true,
"_components": [
{
"__id__": 91
"__id__": 101
},
{
"__id__": 92
"__id__": 102
},
{
"__id__": 93
"__id__": 103
}
],
"_prefab": null,
......@@ -4124,7 +4560,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 100
},
"_enabled": true,
"_type": 0,
......@@ -4149,7 +4585,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 100
},
"_enabled": true,
"tag": 0,
......@@ -4175,7 +4611,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 100
},
"_enabled": true,
"alignMode": 1,
......@@ -4208,13 +4644,13 @@
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 105
},
{
"__id__": 96
"__id__": 106
},
{
"__id__": 97
"__id__": 107
}
],
"_prefab": null,
......@@ -4270,7 +4706,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 104
},
"_enabled": true,
"_defaultClip": {
......@@ -4289,7 +4725,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 104
},
"_enabled": true,
"_materials": [
......@@ -4321,7 +4757,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
"__id__": 104
},
"_enabled": true,
"alignMode": 1,
......
......@@ -91,9 +91,6 @@
},
{
"__id__": 289
},
{
"__id__": 290
}
],
"_prefab": null,
......@@ -12805,24 +12802,5 @@
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "23mlOldwlMM4VjKG7xyPZD"
},
{
"__type__": "221b6Awh/1PLZ7IzVb1f3El",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"soundOffSprite": {
"__uuid__": "d2abbacf-3959-4e3a-9fb7-5c1527a74dda"
},
"soundOnSprite": {
"__uuid__": "65a2b7d8-d4e8-4571-aedb-766db7693820"
},
"soundIntro": null,
"soundClick": null,
"animNode": null,
"_id": "1ck0GVZStOcohONtASUQ0f"
}
]
\ No newline at end of file
......@@ -75,16 +75,16 @@
"__id__": 5
},
{
"__id__": 136
"__id__": 142
},
{
"__id__": 139
"__id__": 145
},
{
"__id__": 144
"__id__": 150
},
{
"__id__": 147
"__id__": 153
},
{
"__id__": 7
......@@ -94,15 +94,24 @@
},
{
"__id__": 90
},
{
"__id__": 156
},
{
"__id__": 136
},
{
"__id__": 139
}
],
"_active": true,
"_components": [
{
"__id__": 150
"__id__": 160
},
{
"__id__": 151
"__id__": 161
}
],
"_prefab": null,
......@@ -333,6 +342,12 @@
"soundClick": {
"__uuid__": "cf27e773-adad-4fbc-8cae-5a44401a6a27"
},
"adsBgr": {
"__id__": 136
},
"notiLabel": {
"__id__": 139
},
"_id": "e4AcfCH0hHK4XH2EkmaIYU"
},
{
......@@ -6426,13 +6441,13 @@
},
{
"__type__": "cc.Node",
"_name": "Background",
"_name": "AdsNoti",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 137
......@@ -6442,6 +6457,248 @@
}
],
"_prefab": null,
"_opacity": 150,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 1140
},
"_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": "3aarzXSipJlaSE4bk6gusk"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 0,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a4uhQkcj9ChIliSD8lFKF5"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
},
"_enabled": true,
"alignMode": 1,
"_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": 640,
"_originalHeight": 1140,
"_id": "7fy7YE/zhCGLrUDMe2e9Qu"
},
{
"__type__": "cc.Node",
"_name": "NotiLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 140
},
{
"__id__": 141
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 284.08,
"height": 67
},
"_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": "cfHBrRcZFNQbvalOS5k7I2"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Notification",
"_N$string": "Notification",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "0481a3d3-282a-499e-b2f1-c53edc40ac4c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "3d7IdpPtRChIc8ZxHNTyEL"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": "0ajO6iH9hOQ5kIHhSk/Utf"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 143
},
{
"__id__": 144
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
......@@ -6494,7 +6751,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 142
},
"_enabled": true,
"_materials": [
......@@ -6526,7 +6783,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 142
},
"_enabled": true,
"alignMode": 1,
......@@ -6559,13 +6816,13 @@
"_active": true,
"_components": [
{
"__id__": 140
"__id__": 146
},
{
"__id__": 141
"__id__": 147
},
{
"__id__": 143
"__id__": 149
}
],
"_prefab": null,
......@@ -6621,7 +6878,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 145
},
"_enabled": true,
"_materials": [
......@@ -6653,7 +6910,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 145
},
"_enabled": true,
"_normalMaterial": null,
......@@ -6662,7 +6919,7 @@
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 142
"__id__": 148
}
],
"_N$interactable": true,
......@@ -6735,7 +6992,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 145
},
"_enabled": true,
"alignMode": 1,
......@@ -6768,10 +7025,10 @@
"_active": true,
"_components": [
{
"__id__": 145
"__id__": 151
},
{
"__id__": 146
"__id__": 152
}
],
"_prefab": null,
......@@ -6827,7 +7084,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 150
},
"_enabled": true,
"_materials": [
......@@ -6862,7 +7119,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 150
},
"_enabled": true,
"_color": {
......@@ -6886,10 +7143,10 @@
"_active": true,
"_components": [
{
"__id__": 148
"__id__": 154
},
{
"__id__": 149
"__id__": 155
}
],
"_prefab": null,
......@@ -6945,7 +7202,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 147
"__id__": 153
},
"_enabled": true,
"_materials": [
......@@ -6977,7 +7234,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 147
"__id__": 153
},
"_enabled": true,
"alignMode": 1,
......@@ -6999,6 +7256,185 @@
"_originalHeight": 0,
"_id": "1fXSSIpdlMX7nL3+7lzWhn"
},
{
"__type__": "cc.Node",
"_name": "ButtonAds",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 157
},
{
"__id__": 158
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 190,
"height": 115
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
152.753,
355.793,
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": "d4Fj63ertA3I6AIje5+uBM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 156
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "57b3fb4b-15db-4c36-92d9-32b4867b485f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f6Dcv3XNVPOIWOjEHRasDG"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 156
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 159
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "4dJ1JZPbFF/67TIz5+nTG8"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 5
},
"component": "",
"_componentId": "f70c6+rGTpCb5eFSFhdOQ73",
"handler": "onPlayerClickAds",
"customEventData": ""
},
{
"__type__": "cc.Canvas",
"_name": "",
......
......@@ -5,10 +5,9 @@ import PracticeLine from "../Objects/PracticeLine";
import Utils from "../Tools/Utils";
import { GlobalVariables } from "../Data/GlobalVariables";
import StageController from "./StageController";
import SkinController from "./SkinsController";
import Hive from "../Objects/Hive";
import SoundController from "./SoundController";
import StartScene from "./StartScene";
import { showInterstitialAd } from "../../adsense-h5g-api/h5_games_ads";
import { InterstitialType } from "../../adsense-h5g-api/interstitial_type";
const { ccclass, property } = cc._decorator;
......@@ -27,6 +26,8 @@ export default class GamePlay extends cc.Component {
@property(cc.Node) coinLabel: cc.Node = null;
@property(cc.Node) coinEarned: cc.Node = null;
@property(cc.Node) levelComp: cc.Node = null;
@property(cc.Node) adsBgr: cc.Node = null;
@property(cc.Node) notiLabel: cc.Node = null;
@property(cc.Node) rewardSprite: cc.Node = null;
@property(cc.Node) shadow: cc.Node = null;
@property(cc.AudioClip) soundClick: cc.AudioClip = null;
......@@ -75,6 +76,9 @@ export default class GamePlay extends cc.Component {
cc.director.getPhysicsManager().enabled = true;
cc.director.getCollisionManager().enabled = true;
window.addEventListener("beforeunload", this.handleGameReload);
window.addEventListener("unload", this.handleGameReload);
// cc.director.getPhysicsManager().debugDrawFlags = 1;
this.highestLevel = LocalStorage.getHighestLevel();
this.currentLevel = LocalStorage.getCurrentLevel();
......@@ -99,6 +103,57 @@ export default class GamePlay extends cc.Component {
this.node.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchUp, this);
}
handleGameReload() {
LocalStorage.setGameStarted(false);
}
onPlayerClickAds() {
showInterstitialAd(InterstitialType.START, "doubleCoin");
}
onDestroy() {
window.removeEventListener("beforeunload", this.handleGameReload);
window.removeEventListener("unload", this.handleGameReload);
}
onShowNotiAds(status: string) {
if (status == "ok") {
this.notiLabel.getComponent(cc.Label).string =
"Successfully doubled coins!";
LocalStorage.setAllCoin(LocalStorage.getAllCoin() + this.randomCoin * 2);
this.adsBgr.active = true;
this.notiLabel.active = true;
this.scheduleOnce(() => {
this.adsBgr.active = false;
this.notiLabel.active = false;
}, 2);
this.currentCoin = LocalStorage.getAllCoin();
this.coinLabel.getComponent(cc.Label).string = `x${this.currentCoin}`;
}
if (status == "cancel") {
this.showFailedNotiAds("Double coin failed");
}
if (status == "notReady") {
this.showFailedNotiAds("Advertisement is preparing");
}
if (status == "frequencyCapped") {
this.showFailedNotiAds("Ads frequency limit!");
}
}
showFailedNotiAds(status: string) {
this.notiLabel.getComponent(cc.Label).string = status;
this.adsBgr.active = true;
this.notiLabel.active = true;
this.scheduleOnce(() => {
this.adsBgr.active = false;
this.notiLabel.active = false;
}, 2);
}
updateAllStarLabel() {
let sum = 0;
for (const item of LocalStorage.getAllStars()) {
......@@ -212,7 +267,8 @@ export default class GamePlay extends cc.Component {
if (
cc.Vec2.distance(touchPos, this.lastTouchPos) >= this.lineMinSegLength &&
cc.Vec2.distance(touchPos, this.lastDrawnPos) <= this.lineMinSegLength * 5
cc.Vec2.distance(touchPos, this.lastDrawnPos) <=
this.lineMinSegLength * 10
) {
if (!this.drew) {
let touchNormal = touchPos.sub(this.lastTouchPos).normalize();
......@@ -220,19 +276,19 @@ export default class GamePlay extends cc.Component {
let rightEdgeNormal = Utils.RotateVec2Clockwise(touchNormal);
let leftEdgeLast = this.lastTouchPos.add(
cc.v2(leftEdgeNormal).multiplyScalar(this.lineWidth / 2)
cc.v2(leftEdgeNormal).multiplyScalar(this.lineWidth / 1.5)
);
let rightEdgeLast = this.lastTouchPos.add(
cc.v2(rightEdgeNormal).multiplyScalar(this.lineWidth / 2)
cc.v2(rightEdgeNormal).multiplyScalar(this.lineWidth / 1.5)
);
let leftEdgeCurrent = touchPos.add(
cc.v2(leftEdgeNormal).multiplyScalar(this.lineWidth / 2)
cc.v2(leftEdgeNormal).multiplyScalar(this.lineWidth / 1.5)
);
let rightEdgeCurrent = touchPos.add(
cc.v2(rightEdgeNormal).multiplyScalar(this.lineWidth / 2)
cc.v2(rightEdgeNormal).multiplyScalar(this.lineWidth / 1.5)
);
let newPolyCol = this.draw.addComponent(cc.PhysicsPolygonCollider);
......
import { GlobalVariables } from "../Data/GlobalVariables";
import { showInterstitialAd } from "../../adsense-h5g-api/h5_games_ads";
import { InterstitialType } from "../../adsense-h5g-api/interstitial_type";
import LocalStorage from "../Data/LocalStorage";
import StartScene from "./StartScene";
const { ccclass, property } = cc._decorator;
......@@ -10,23 +10,70 @@ export default class SkinController extends cc.Component {
@property(cc.Node) playerSkins: cc.Node = null;
@property(cc.Node) enemySkins: cc.Node = null;
@property(cc.AudioClip) soundClick: cc.AudioClip = null;
@property(cc.Node) adsBgr: cc.Node = null;
@property(cc.Node) notiLabel: cc.Node = null;
static instance: SkinController;
allCoin: number;
allSkins: Array<{ skin: string; available: boolean }>;
protected onLoad(): void {
SkinController.instance = this;
this.allCoin = LocalStorage.getAllCoin();
this.allSkins = LocalStorage.getAllSkins();
this.updateStatus();
this.loadCurrentSkin();
}
onPlayerClickAds() {
showInterstitialAd(InterstitialType.START, "earn15Coin");
}
onClickButtonBack() {
cc.director.loadScene("start");
cc.audioEngine.playEffect(this.soundClick, false);
cc.audioEngine.stopAllEffects();
}
onShowNotiAds(status: string) {
if (status == "ok") {
this.notiLabel.getComponent(cc.Label).string =
"Received coins successfully!";
LocalStorage.setAllCoin(LocalStorage.getAllCoin() + 15);
this.adsBgr.active = true;
this.notiLabel.active = true;
this.scheduleOnce(() => {
this.adsBgr.active = false;
this.notiLabel.active = false;
}, 2);
this.allCoin = LocalStorage.getAllCoin();
this.coinLabel.getComponent(cc.Label).string = `x${this.allCoin}`;
}
if (status == "cancel") {
this.showFailedNotiAds("Receiving coins failed!");
}
if (status == "notReady") {
this.showFailedNotiAds("Advertisement is preparing..!");
}
if (status == "frequencyCapped") {
this.showFailedNotiAds("Ads frequency limit!");
}
}
showFailedNotiAds(status: string) {
this.notiLabel.getComponent(cc.Label).string = status;
this.adsBgr.active = true;
this.notiLabel.active = true;
this.scheduleOnce(() => {
this.adsBgr.active = false;
this.notiLabel.active = false;
}, 2);
}
loadCurrentSkin() {
const skinPlayer = LocalStorage.getCurrentSkinPlayer();
const enemyPlayer = LocalStorage.getCurrentSkinEnemy();
......
......@@ -30,6 +30,8 @@ export default class StartScene extends cc.Component {
this.updateButtonSprite();
window.addEventListener("beforeunload", this.handleGameReload);
window.addEventListener("unload", this.handleGameReload);
this.isStarted = LocalStorage.getGameStarted();
if (this.isStarted) this.node.getChildByName("Intro").active = false;
......@@ -53,6 +55,7 @@ export default class StartScene extends cc.Component {
onDestroy() {
window.removeEventListener("beforeunload", this.handleGameReload);
window.removeEventListener("unload", this.handleGameReload);
}
onClickOpenGame() {
......
import GamePlay from "../Controllers/GamePlay";
import SoundController from "../Controllers/SoundController";
import { GlobalVariables } from "../Data/GlobalVariables";
import LocalStorage from "../Data/LocalStorage";
const { ccclass, property } = cc._decorator;
......
{
"ver": "1.1.3",
"uuid": "4e14393c-a6c4-4bfe-946c-abe1c5d19a8d",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
/**
* Ad Events for Interstitial Callback
*/
export enum PrerollAdEvent {
AD_BREAK_DONE = 'H5GA_EVENT_PREROLL_AD_BREAK_DONE',
}
/**
* Ad Events for Interstitial Callback
*/
export enum InterstitialAdEvent {
BEFORE_AD = 'H5GA_EVENT_INTERSTITIAL_BEFORE_AD',
AFTER_AD = 'H5GA_EVENT_INTERSTITIAL_AFTER_AD',
AD_BREAK_DONE = 'H5GA_EVENT_INTERSTITIAL_AD_BREAK_DONE',
}
/**
* Ad Events for Rewarded Video Callback
*/
export enum RewardedVideoAdEvent {
BEFORE_AD = 'H5GA_EVENT_REWARDED_VIDEO_BEFORE_AD',
AFTER_AD = 'H5GA_EVENT_REWARDED_VIDEO_AFTER_AD',
AD_BREAK_DONE = 'H5GA_EVENT_REWARDED_VIDEO_AD_BREAK_DONE',
BEFORE_REWARD = 'H5GA_EVENT_REWARDED_VIDEO_BEFORE_REWARD',
AD_DISMISSED = 'H5GA_EVENT_REWARDED_VIDEO_AD_DISMISSED',
AD_VIEWED = 'H5GA_EVENT_REWARDED_VIDEO_AD_VIEWED',
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "6cdefff5-eef4-4d14-bf7f-3797ba31418b",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
const { game } = cc;
import { InterstitialCallback } from "./interstitial_callback";
import { RewardedCallback } from "./rewarded_callback";
import { PrerollCallback } from "./preroll_callback";
import {
InterstitialAdEvent,
PrerollAdEvent,
RewardedVideoAdEvent,
} from "./ad_event";
import { InterstitialType } from "./interstitial_type";
import SkinController from "../Scripts/Controllers/SkinsController";
import GamePlay from "../Scripts/Controllers/GamePlay";
// This is needed since there're no definition for AdSense object here.
// tslint:disable-next-line:no-any
const ADS_BY_GOOGLE = (window as any).adsbygoogle;
type AdBreakCallback =
| InterstitialCallback
| RewardedCallback
| PrerollCallback;
const adBreak = (o: AdBreakCallback) => {
ADS_BY_GOOGLE.push(o);
};
//let showRewardedAdFn : (() => void) | null;
/**
* API to show Preroll Ad when available.
* If there are no ad available this function will request an ad.
*/
// export function showPrerollAd(){
// try {
// const game_instance = game;
// adBreak({
// type: 'preroll',
// adBreakDone: (placementInfo: any) => {
// game_instance.emit(PrerollAdEvent.AD_BREAK_DONE);
// },
// });
// console.log(ADS_BY_GOOGLE)
// } catch(e) {
// console.log(e)
// }
// }
/**
* API to show Interstitial Ad when available.
* If there are no ad available this function will request an ad.
*/
export function showInterstitialAd(type: InterstitialType, name: string) {
try {
console.log("try to show InterstitialAd");
const gameInstance = game;
adBreak({
type,
name,
beforeAd: () => {
console.log("beforeAd");
gameInstance.emit(InterstitialAdEvent.BEFORE_AD);
cc.audioEngine.pauseMusic();
cc.audioEngine.pauseAllEffects();
},
afterAd: () => {
console.log("afterAd");
gameInstance.emit(InterstitialAdEvent.AFTER_AD);
},
adBreakDone: (placementInfo: any) => {
console.log(placementInfo);
gameInstance.emit(InterstitialAdEvent.AD_BREAK_DONE);
console.log("adBreakDone");
cc.audioEngine.resumeMusic();
cc.audioEngine.resumeAllEffects();
if (
placementInfo.breakName == "earn15Coin" &&
placementInfo.breakStatus == "viewed"
) {
SkinController.instance.onShowNotiAds("ok");
}
if (
(placementInfo.breakName == "earn15Coin" &&
placementInfo.breakStatus == "ignored") ||
placementInfo.breakStatus == "other"
) {
SkinController.instance.onShowNotiAds("cancel");
}
if (
placementInfo.breakName == "earn15Coin" &&
placementInfo.breakStatus == "notReady"
) {
SkinController.instance.onShowNotiAds("notReady");
}
if (
placementInfo.breakName == "earn15Coin" &&
placementInfo.breakStatus == "frequencyCapped"
) {
SkinController.instance.onShowNotiAds("frequencyLimit");
}
if (
placementInfo.breakName == "doubleCoin" &&
placementInfo.breakStatus == "viewed"
) {
GamePlay.instance.onShowNotiAds("ok");
}
if (
(placementInfo.breakName == "doubleCoin" &&
placementInfo.breakStatus == "ignored") ||
placementInfo.breakStatus == "other"
) {
GamePlay.instance.onShowNotiAds("cancel");
}
if (
placementInfo.breakName == "doubleCoin" &&
placementInfo.breakStatus == "notReady"
) {
SkinController.instance.onShowNotiAds("notReady");
}
if (
placementInfo.breakName == "doubleCoin" &&
placementInfo.breakStatus == "frequencyCapped"
) {
GamePlay.instance.onShowNotiAds("frequencyLimit");
}
},
});
} catch (e) {
console.log(e);
}
}
/**
* API to request Rewarded Ad.
* To show the Rewarded Ad you could call showRewardedAd after
* beforeReward callback.
*/
// export function requestRewardedAd(name: string) {
// try {
// console.log("try to show InterstitialAd");
// const gameInstance = game;
// adBreak({
// type: 'reward',
// name,
// beforeAd: () => {
// console.log("beforeAd");
// gameInstance.emit(RewardedVideoAdEvent.BEFORE_AD);
// },
// afterAd: () => {
// console.log("afterAd");
// gameInstance.emit(RewardedVideoAdEvent.AFTER_AD);
// },
// adBreakDone: (placementInfo: unknown) => {
// console.log("adBreakDone");
// console.log(placementInfo)
// gameInstance.emit(RewardedVideoAdEvent.AD_BREAK_DONE);
// },
// beforeReward: (showAdFn: () => void) => {
// showRewardedAdFn = showAdFn;
// console.log("beforeReward");
// gameInstance.emit(RewardedVideoAdEvent.BEFORE_REWARD);
// },
// adDismissed: () => {
// console.log("adDismissed");
// gameInstance.emit(RewardedVideoAdEvent.AD_DISMISSED);
// },
// adViewed: () => {
// console.log("adViewed");
// gameInstance.emit(RewardedVideoAdEvent.AD_VIEWED);
// },
// });
// } catch (e) {
// console.log(e);
// }
// }
/**
* API to show Rewarded Ad when available.
*/
// export function showRewardedAd() {
// if (!showRewardedAdFn) {
// console.log('No Rewarded Ad available');
// return;
// }
// showRewardedAdFn();
// showRewardedAdFn = null;
// }
{
"ver": "1.1.0",
"uuid": "b6763fe6-ff2c-4e97-a7f9-4b833b3bd756",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import {InterstitialType} from './interstitial_type';
/**
* Interface for Interstitial AdBreak API Callback
*/
export interface InterstitialCallback {
type: InterstitialType;
name: string;
beforeAd: () => void;
afterAd: () => void;
adBreakDone: (placementInfo: unknown) => void;
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "34ce0e5e-8ebf-441d-ac42-2da72d04ed54",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* Interstitial Type for AdBreak
*/
export enum InterstitialType {
START = 'start',
PAUSE = 'pause',
NEXT = 'next',
BROWSE = 'browse',
REWARD = 'reward',
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "41c2c096-5666-4975-9e79-905a489bf100",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* Interface for Preroll AdBreak API Callback
*/
export interface PrerollCallback {
type: string;
adBreakDone: (placementInfo: unknown) => void;
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "5c029479-8a2c-42bb-a75f-7144f2b1ff01",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
/**
* Interface for Rewarded AdBreak API Callback
*/
export interface RewardedCallback {
type: string;
name: string;
beforeAd: () => void;
afterAd: () => void;
beforeReward: (showAdFn: () => void) => void;
adDismissed: () => void;
adViewed: () => void;
adBreakDone: (placementInfo: unknown) => void;
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "482f4afa-70f0-42f5-96a9-7ababa9481aa",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -124,7 +124,7 @@ h1 {
}
#GameDiv {
width: calc(100vh * 45 / 80);
width: 100vh;
height: 100vh;
margin: 0 auto;
background: black;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment