Commit abf3d6bd authored by 范雪寒's avatar 范雪寒

feat: 页面配置

parent ff870b72
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "943b6aa9-8754-478d-9db9-6e80faa25960", "uuid": "7e76f46c-001c-42d7-ab08-a7608cc673f4",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "771c13cf-dd4a-4c25-9dca-413a319550cf", "uuid": "f95ef923-1864-4251-886f-b8aae631d5cd",
"isPlugin": true, "isPlugin": true,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
...@@ -29,11 +29,11 @@ export class NetworkHelper { ...@@ -29,11 +29,11 @@ export class NetworkHelper {
} }
room: MGOBE.Room; room: MGOBE.Room;
initRoom() { initRoom(cacertFile: any = undefined) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const gameId = "obg-d75cgddl"; //替换为控制台上的 游戏 ID const gameId = "obg-i4ql53h1"; //替换为控制台上的 游戏 ID
const secretKey = "ee8c7260319780749d5f13bfe1420a4d083cbc77"; //替换为控制台上的 游戏 Key const secretKey = "060d81c7abaf24c8ce2afc5a725c152062676d35"; //替换为控制台上的 游戏 Key
const serverUrl = "d75cgddl.wxlagame.com"; //替换为控制台上的 域名 const serverUrl = "i4ql53h1.wxlagame.com"; //替换为控制台上的 域名
const gameInfo = { const gameInfo = {
gameId: gameId, gameId: gameId,
...@@ -49,18 +49,22 @@ export class NetworkHelper { ...@@ -49,18 +49,22 @@ export class NetworkHelper {
cacertNativeUrl: "" cacertNativeUrl: ""
}; };
// MGOBE.DebuggerLog.enable = true; MGOBE.DebuggerLog.enable = true;
// 如果是原生平台,则加载 Cert 证书,否则会提示 WSS 错误 // 如果是原生平台,则加载 Cert 证书,否则会提示 WSS 错误
// if (cc.sys.isNative) { if (cc.sys.isNative) {
// config.cacertNativeUrl = cc.loader.md5Pipe && cc.ENGINE_VERSION < "2.4.0" ? if (!cacertFile) {
// cc.loader.md5Pipe.transformURL(this.cacertFile.nativeUrl) : this.log('没有cacertFile!!!');
// this.cacertFile.nativeUrl; }
// } this.log('汪汪汪: ' + cacertFile.nativeUrl);
config.cacertNativeUrl = cc.loader.md5Pipe && cc.ENGINE_VERSION < "2.4.0" ?
cc.loader.md5Pipe.transformURL(cacertFile.nativeUrl) :
cacertFile.nativeUrl;
}
MGOBE.Listener.init(gameInfo, config, event => { MGOBE.Listener.init(gameInfo, config, event => {
console.log(event); console.log(event);
if (event.code !== 0) { if (event.code !== 0) {
this.log("初始化失败"); this.log("初始化失败: " + event.code);
reject(); reject();
return; return;
} }
......
...@@ -81,13 +81,13 @@ ...@@ -81,13 +81,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 14 "__id__": 43
}, },
{ {
"__id__": 15 "__id__": 44
}, },
{ {
"__id__": 16 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -340,6 +340,12 @@ ...@@ -340,6 +340,12 @@
"_children": [ "_children": [
{ {
"__id__": 8 "__id__": 8
},
{
"__id__": 21
},
{
"__id__": 32
} }
], ],
"_active": true, "_active": true,
...@@ -405,12 +411,15 @@ ...@@ -405,12 +411,15 @@
}, },
{ {
"__id__": 11 "__id__": 11
},
{
"__id__": 13
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 13 "__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -649,12 +658,142 @@ ...@@ -649,12 +658,142 @@
"_atlas": null, "_atlas": null,
"_id": "58ZLCqEjVJp64IOqQaj7Ok" "_id": "58ZLCqEjVJp64IOqQaj7Ok"
}, },
{
"__type__": "cc.Node",
"_name": "diceBg",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-149.331,
-2.297,
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": "5fZYXrNDZCS7TXTOUvqLd6"
},
{
"__type__": "cc.Node",
"_name": "dice",
"_objFlags": 0,
"_parent": {
"__id__": 13
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 565,
"height": 565
},
"_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": "51/mFfUtNPKpRb4QUus9v8"
},
{ {
"__type__": "cc.Sprite", "__type__": "cc.Sprite",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 8 "__id__": 14
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -665,7 +804,7 @@ ...@@ -665,7 +804,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "c9412c2e-dd66-4397-9618-f04d37cae348" "__uuid__": "c335444d-5b10-40c1-afc1-6e5f5151b6a9"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -679,7 +818,1295 @@ ...@@ -679,7 +818,1295 @@
"_fillRange": 0, "_fillRange": 0,
"_isTrimmedMode": true, "_isTrimmedMode": true,
"_atlas": null, "_atlas": null,
"_id": "32aClM5/9HgJEcj5NcuPZy" "_id": "1evXM5BgpNXKdgnSmaUqVs"
},
{
"__type__": "cc.Node",
"_name": "point",
"_objFlags": 0,
"_parent": {
"__id__": 13
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 43,
"height": 108
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "f9fj6VMo9Gqo5K08zSYASP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cb763712-7b0a-450e-b2db-821b915af067"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c7aqEns0NGnYKWQrcCYi+8"
},
{
"__type__": "cc.Node",
"_name": "hat",
"_objFlags": 0,
"_parent": {
"__id__": 13
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 156,
"height": 155
},
"_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": "5bx5ikgqNAtoOgW53gUdZp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4fb05006-f192-4fa2-a680-64030ca06442"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "36ctt3aVdB+rALZBlY4eqX"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c9412c2e-dd66-4397-9618-f04d37cae348"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "32aClM5/9HgJEcj5NcuPZy"
},
{
"__type__": "cc.Node",
"_name": "Lifeblue",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 22
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-936.379,
-694.898,
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": "85XU9mV75ENb8dqaJ9Lz1l"
},
{
"__type__": "cc.Node",
"_name": "life_blue",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [
{
"__id__": 23
}
],
"_active": true,
"_components": [
{
"__id__": 27
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 785
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
31.502,
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": "2bYBrsxKJMs66tAHj+Hv/K"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [
{
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 26
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 648
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
137,
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": "27Y4AMX1BAraalOzyUEjCS"
},
{
"__type__": "cc.Node",
"_name": "prograssbar",
"_objFlags": 0,
"_parent": {
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 25
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 648
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "74T8dF9EpLa5xUKUTZ0gwe"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "134eb0c8-f3f3-43ca-bbc2-62ef8b779572"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "515RVOdhhBOIsMLRMhenf+"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": false,
"_id": "3e9npWZu5Jwb5TRCZqc7bn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4af2e965-7b72-44b4-9a95-94b2958cd5c3"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5a9AWfbWVJ5IINAfbscgaP"
},
{
"__type__": "cc.Node",
"_name": "dice_bg",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 319,
"height": 319
},
"_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": "d2Yu/pRERL9Jh950nc6S8O"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2acf4e3f-154a-48ee-ab12-2a8ff8bd30c7"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5fwNEoTkpN06wTZo+9ba+T"
},
{
"__type__": "cc.Node",
"_name": "pieceBlue",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 155,
"height": 217
},
"_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": "b4bgEyW3tPGraly4CK2lax"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "05bb600e-fea4-49bd-9e1b-82d418cfa758"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b5hWiemHtFOqUhQH+0co3i"
},
{
"__type__": "cc.Node",
"_name": "Lifered",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 33
},
{
"__id__": 39
},
{
"__id__": 41
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
929.107,
-694.898,
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": "b3sc/SYB1IIo+CUFqqmkFY"
},
{
"__type__": "cc.Node",
"_name": "life_blue",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [
{
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 38
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 785
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
31.502,
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": "d8FGmpF7ZJEJxEJQCH+SmP"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 33
},
"_children": [
{
"__id__": 35
}
],
"_active": true,
"_components": [
{
"__id__": 37
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 648
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
137,
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": "a2/hOlkldKB7MB2NWB3338"
},
{
"__type__": "cc.Node",
"_name": "prograssbar",
"_objFlags": 0,
"_parent": {
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 648
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "35fylcorpNIJlgQu/B0D3I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "134eb0c8-f3f3-43ca-bbc2-62ef8b779572"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "450NThGzhJRLWVl3QdTNXS"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": false,
"_id": "5fPj9Z0XNOu70EKY2nUVTA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4af2e965-7b72-44b4-9a95-94b2958cd5c3"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b3IXvIvMpP1rhoDG8YH262"
},
{
"__type__": "cc.Node",
"_name": "dice_bg",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 319,
"height": 319
},
"_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": "80FmcNCPhFJbJYe+jCNPaO"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2acf4e3f-154a-48ee-ab12-2a8ff8bd30c7"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "beKF2Y3NFC2qdusIQtUQQE"
},
{
"__type__": "cc.Node",
"_name": "pieceRed",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 155,
"height": 217
},
"_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": "ccd5BzEURK153i++vQb4yn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3b654b77-15b6-435a-b6ed-1e56fb2b744f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "75hgWconBOOL7XbsBNHyOy"
}, },
{ {
"__type__": "cc.Canvas", "__type__": "cc.Canvas",
......
...@@ -33,7 +33,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -33,7 +33,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
async initData() { async initData() {
this.networkHelper = new NetworkHelper(); this.networkHelper = new NetworkHelper();
await this.networkHelper.initRoom(); let cacertFile;
const cacertNode = cc.find('cacertNode');
if (cacertNode) {
cacertFile = cacertNode.getComponent('cacert').cacertFile;
}
await this.networkHelper.initRoom(cacertFile);
this.playerId = await this.networkHelper.joinRoom('op_16', 2); this.playerId = await this.networkHelper.joinRoom('op_16', 2);
// const roomInfo = this.networkHelper.getRoomInfo(); // const roomInfo = this.networkHelper.getRoomInfo();
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 565, "height": 565,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"棋盘---副本-(4)": { "dice": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "c335444d-5b10-40c1-afc1-6e5f5151b6a9", "uuid": "c335444d-5b10-40c1-afc1-6e5f5151b6a9",
"rawTextureUuid": "7860da89-d8d0-4816-8626-26c45ec4031c", "rawTextureUuid": "7860da89-d8d0-4816-8626-26c45ec4031c",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 319, "height": 319,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"棋盘---副本-(7)": { "dice_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "2acf4e3f-154a-48ee-ab12-2a8ff8bd30c7", "uuid": "2acf4e3f-154a-48ee-ab12-2a8ff8bd30c7",
"rawTextureUuid": "69fb6834-9a86-4733-9d0a-22ff46b6f415", "rawTextureUuid": "69fb6834-9a86-4733-9d0a-22ff46b6f415",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 155, "height": 155,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"5826": { "hat": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4fb05006-f192-4fa2-a680-64030ca06442", "uuid": "4fb05006-f192-4fa2-a680-64030ca06442",
"rawTextureUuid": "aa49c2a4-337b-40f2-8fce-5622715a1c24", "rawTextureUuid": "aa49c2a4-337b-40f2-8fce-5622715a1c24",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 785, "height": 785,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"棋盘---副本-(8)": { "life": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4af2e965-7b72-44b4-9a95-94b2958cd5c3", "uuid": "4af2e965-7b72-44b4-9a95-94b2958cd5c3",
"rawTextureUuid": "958b1b01-8e14-4d5e-9e10-f0f7787bc4cc", "rawTextureUuid": "958b1b01-8e14-4d5e-9e10-f0f7787bc4cc",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"height": 108, "height": 108,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"棋盘": { "point": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "cb763712-7b0a-450e-b2db-821b915af067", "uuid": "cb763712-7b0a-450e-b2db-821b915af067",
"rawTextureUuid": "12a75ef7-2b39-45d6-b7ad-1fdbfe05c2a7", "rawTextureUuid": "12a75ef7-2b39-45d6-b7ad-1fdbfe05c2a7",
......
{
"ver": "2.3.5",
"uuid": "8c9e0d6e-de6a-4e92-ae65-7c4d77bfcab2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 180,
"height": 785,
"platformSettings": {},
"subMetas": {
"prograssbar": {
"ver": "1.0.4",
"uuid": "134eb0c8-f3f3-43ca-bbc2-62ef8b779572",
"rawTextureUuid": "8c9e0d6e-de6a-4e92-ae65-7c4d77bfcab2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 68.5,
"trimX": 0,
"trimY": 0,
"width": 180,
"height": 648,
"rawWidth": 180,
"rawHeight": 785,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"game": { "game": {
"name": "tankgame", "name": "oxford",
"appid": "658373937", "appid": "682526339",
"cid": "0" "cid": "14699"
}, },
"configs": [ "configs": [
{ {
"appid": "658373937", "appid": "682526339",
"services": [ "services": [
{ {
"service_id": "269", "service_id": "269",
......
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