Commit 857b0688 authored by 范雪寒's avatar 范雪寒

feat: 素材

parent 2c39b90e
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
import { RandomInt } from "../script/util";
import { Base64 } from "js-base64";
export class NetworkHelper {
......@@ -10,8 +10,15 @@ export class NetworkHelper {
}
async init(roomType: string, maxPlayers: number) {
await this.initRoom();
return await this.joinRoom(roomType, maxPlayers);
this.initRoom();
try {
return await this.joinRoom(roomType, maxPlayers);
} catch (e) {
await this.initListener();
this.initRoom();
return await this.joinRoom(roomType, maxPlayers);
}
}
async startGame() {
......@@ -28,18 +35,28 @@ export class NetworkHelper {
return this.room.roomInfo;
}
room: MGOBE.Room;
initRoom(cacertFile: any = undefined) {
initListener() {
return new Promise((resolve, reject) => {
const gameId = "obg-i4ql53h1"; //替换为控制台上的 游戏 ID
const secretKey = "060d81c7abaf24c8ce2afc5a725c152062676d35"; //替换为控制台上的 游戏 Key
const serverUrl = "i4ql53h1.wxlagame.com"; //替换为控制台上的 域名
const openId = "openid_op_16" + Math.random();
const gameInfo = {
const gameInfo: MGOBE.types.GameInfoPara = {
gameId: gameId,
openId: "openid_test" + Math.random(), //自定义的用户唯一ID
secretKey: secretKey
openId: openId,
secretKey: "060d81c7abaf24c8ce2afc5a725c152062676d35",
// createSignature: (callback) => {
// this.callNetworkApiGet('http://192.168.3.142:8081', '/getSign', {
// gameId: gameId,
// openId: openId,
// }, (data) => {
// const signature = JSON.parse(data);
// console.log(JSON.stringify(signature));
// callback(signature);
// });
// }
};
const serverUrl = "i4ql53h1.wxlagame.com"; //替换为控制台上的 域名
const config = {
url: serverUrl,
reconnectMaxTimes: 5,
......@@ -49,40 +66,51 @@ export class NetworkHelper {
cacertNativeUrl: ""
};
MGOBE.DebuggerLog.enable = true;
MGOBE.DebuggerLog.enable = false;
// 如果是原生平台,则加载 Cert 证书,否则会提示 WSS 错误
if (cc.sys.isNative) {
let cacertFile;
const cacertNode = cc.find('cacertNode');
if (cacertNode) {
cacertFile = cacertNode.getComponent('cacert').cacertFile;
}
if (!cacertFile) {
this.log('没有cacertFile!!!');
}
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 => {
console.log(event);
this.log(JSON.stringify(event));
if (event.code !== 0) {
this.log("初始化失败: " + event.code);
reject();
return;
}
this.log("初始化成功");
this.room = new MGOBE.Room();
MGOBE.Listener.add(this.room);
this.room.onJoinRoom = this.onJoinRoom.bind(this);
this.room.onLeaveRoom = this.onLeaveRoom.bind(this);
this.room.onRecvFromClient = this.onRecvFromClient.bind(this);
this.room.onRecvFrame = this.onRecvFrame.bind(this);
this.room.onStartFrameSync = this.onStartFrameSync.bind(this);
this.room.onStopFrameSync = this.onStopFrameSync.bind(this);
this.room.onRecvFromGameSvr = this.onRecvFromGameSvr.bind(this);
resolve(null);
});
});
}
room: MGOBE.Room;
initRoom() {
this.room = new MGOBE.Room();
MGOBE.Listener.add(this.room);
this.room.onJoinRoom = this.onJoinRoom.bind(this);
this.room.onLeaveRoom = this.onLeaveRoom.bind(this);
this.room.onRecvFromClient = this.onRecvFromClient.bind(this);
this.room.onRecvFrame = this.onRecvFrame.bind(this);
this.room.onStartFrameSync = this.onStartFrameSync.bind(this);
this.room.onStopFrameSync = this.onStopFrameSync.bind(this);
this.room.onRecvFromGameSvr = this.onRecvFromGameSvr.bind(this);
this.log('this.room = ' + JSON.stringify(this.room.roomInfo));
}
joinRoom(roomType: string, maxPlayers: number, customData: string = '') {
return new Promise((resolve, reject) => {
const playerName = "Tom" + Math.random();
......@@ -99,14 +127,14 @@ export class NetworkHelper {
};
this.room.matchRoom(matchRoomPara, event => {
console.log(event);
this.log(JSON.stringify(event))
if (event.code === 0) {
cc.log("匹配成功");
cc.log("匹配成功: " + event.data.roomInfo.id);
const player = event.data.roomInfo.playerList.find(player => player.name == playerName);
resolve(player.id);
} else {
cc.log("匹配失败");
reject();
reject(event);
}
});
});
......@@ -115,11 +143,13 @@ export class NetworkHelper {
leaveRoom() {
return new Promise((resolve, reject) => {
this.room.leaveRoom({}, event => {
console.log(event);
this.log(JSON.stringify(event))
if (event.code === 0) {
cc.log("退房成功", this.room.roomInfo.id);
this.room.initRoom();
this.log("退房成功" + this.room.roomInfo.id);
// this.room.initRoom();
resolve(null);
} else {
this.log("退房失败");
}
});
});
......@@ -127,9 +157,9 @@ export class NetworkHelper {
closeRoom() {
return new Promise((resolve, reject) => {
this.room.changeRoom({ isForbidJoin: false }, (event) => {
this.room.changeRoom({ isForbidJoin: true }, (event) => {
console.log('关门')
console.log(event);
this.log(JSON.stringify(event))
resolve(null);
});
});
......@@ -147,7 +177,7 @@ export class NetworkHelper {
startFrameSync() {
return new Promise((resolve, reject) => {
this.room.startFrameSync({}, event => {
console.log(event);
this.log(JSON.stringify(event))
if (event.code === 0) {
cc.log("开始帧同步成功,请到控制台查看具体帧同步信息");
resolve(null);
......@@ -160,12 +190,17 @@ export class NetworkHelper {
stopFrameSync() {
return new Promise((resolve, reject) => {
if (!this.room) {
resolve(null);
return;
}
this.room.stopFrameSync({}, event => {
console.log(event);
this.log(JSON.stringify(event))
if (event.code === 0) {
cc.log("停止帧同步成功");
this.log("停止帧同步成功");
resolve(null);
} else {
this.log("停止帧同步失败");
reject(event.code);
}
});
......@@ -216,6 +251,17 @@ export class NetworkHelper {
onStopFrameSync(event) { }
onRecvFromGameSvr() { }
async onDestroy() {
try {
this.log('onDestroy1')
MGOBE.Listener.clear();
await this.stopGame();
this.log('onDestroy2')
} catch (e) {
this.log(JSON.stringify(e));
}
}
log(str) {
const node = cc.find('middleLayer');
if (node) {
......@@ -224,4 +270,25 @@ export class NetworkHelper {
cc.log(str);
}
}
callNetworkApiGet(baseUrl, uri, data, callBack) {
let queryStr = '?';
const params = [];
for (const key in data) {
if (Object.hasOwnProperty.call(data, key)) {
params.push(`${key}=${data[key]}`);
}
}
queryStr += params.join("&");
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
callBack(xhr.responseText);
}
};
const url = `${baseUrl}${uri}${queryStr}`;
console.log('url = ' + url);
xhr.open('GET', url, true);
xhr.send();
}
}
\ No newline at end of file
......@@ -81,13 +81,13 @@
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 92
},
{
"__id__": 46
"__id__": 93
},
{
"__id__": 47
"__id__": 94
}
],
"_prefab": null,
......@@ -342,10 +342,10 @@
"__id__": 8
},
{
"__id__": 23
"__id__": 70
},
{
"__id__": 34
"__id__": 81
}
],
"_active": true,
......@@ -417,12 +417,15 @@
},
{
"__id__": 20
},
{
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 69
}
],
"_prefab": null,
......@@ -460,39 +463,2229 @@
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2a3PegIYRDwov9e9me+6qR"
},
{
"__type__": "cc.Node",
"_name": "diceBg",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 10
},
{
"__id__": 12
},
{
"__id__": 14
}
],
"_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__": 9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
}
],
"_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",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c335444d-5b10-40c1-afc1-6e5f5151b6a9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1evXM5BgpNXKdgnSmaUqVs"
},
{
"__type__": "cc.Node",
"_name": "point",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
}
],
"_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__": 12
},
"_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__": 9
},
"_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": 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__": 14
},
"_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.Node",
"_name": "pieces",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 17
}
],
"_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": [
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": "a4P7I/RmNL8px1EHcnKTp9"
},
{
"__type__": "cc.Node",
"_name": "piece_0",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 250,
"height": 250
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-530.699,
689.218,
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": "986knaxLhDP7ktm29qlKGk"
},
{
"__type__": "cc.Node",
"_name": "pieceRed",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_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": 155,
"height": 217
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
921.256,
-707.598,
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": "f7TyvUU55DoYm4SUW6dFv4"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_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": "04HgatWhpMoIw2Wg5HfHUE"
},
{
"__type__": "cc.Node",
"_name": "pieceBlue",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_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": [
-938.793,
-701.08,
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": "b5qt0PHa1C4IdPRDv/aYOp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
},
"_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": "58ZLCqEjVJp64IOqQaj7Ok"
},
{
"__type__": "cc.Node",
"_name": "boardItems",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 27
},
{
"__id__": 29
},
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
},
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
},
{
"__id__": 59
},
{
"__id__": 61
},
{
"__id__": 63
},
{
"__id__": 65
},
{
"__id__": 67
}
],
"_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": [
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": "1eoQTk1LBLhpSwOpmlHVql"
},
{
"__type__": "cc.Node",
"_name": "dog",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 218,
"height": 168
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-264.201,
716.788,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "61Cng65nhEmKS/Ty6B2QjM"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "919b3949-a2fa-46a6-8989-f205872e46e7"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c1PJAYpzdDIZrrW62Vfypv"
},
{
"__type__": "cc.Node",
"_name": "fan",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_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": 177,
"height": 131
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4.595,
712.193,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0eVkxAMQpCwa1bVYVYylQp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "418b3bae-b458-476b-88af-e89b59693eaa"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ddAi74MXBBm4oUss9eQr/3"
},
{
"__type__": "cc.Node",
"_name": "cat",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 176,
"height": 147
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
268.795,
698.409,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cd/JZRmIhAY4VSC17I1NvU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "df29829b-8e4e-43d8-96b3-173795a1f8ac"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "386BJVCdtLeKL3rKloCs1R"
},
{
"__type__": "cc.Node",
"_name": "tea",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 184,
"height": 87
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
542.339,
664.003,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "cdWQ9Q/tpLi4LSbtcOowrW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5ab25ead-3f4f-4b09-8c38-113693114a09"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "2f+mCQGURJq5DLueY43jZi"
},
{
"__type__": "cc.Node",
"_name": "ant",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 149,
"height": 122
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
498.023,
409.275,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2aTPnVFKBGLqbxuJKEu3hv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "73c87047-363f-46ed-81f3-3dd65bbad6e5"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "579IHOoUNE2LVgu5J/u3Ds"
},
{
"__type__": "cc.Node",
"_name": "envelope",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 167,
"height": 133
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
215.955,
431.911,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2c2ZHWUj5EZJ0iW81AavFw"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e15c3a2f-84f8-452f-9351-b02ec37ea3fb"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "10A3xE8DFB0qv0bMFZEmE6"
},
{
"__type__": "cc.Node",
"_name": "bed",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_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": 209,
"height": 165
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-75.867,
437.695,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ebXa0wnsFC9JybrF+vmjZu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "244e49a4-bd83-4f7d-9eb3-48bf20c9c807"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f8ZS25+LlMmbNuIV2TEqzp"
},
{
"__type__": "cc.Node",
"_name": "computer",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_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": 199,
"height": 192
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-356.096,
445.695,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "98+fTe2uZJNLthXU4L+NZW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cb81a696-9714-4858-b79e-3fedea357230"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59sSfyvrZK24w/k6jFhX6l"
},
{
"__type__": "cc.Node",
"_name": "fork",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_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": 184,
"height": 145
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-590.431,
344.61,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "415v1Idj1KyqCY79nrIQz5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8309d0f6-4d8d-4e3b-ab75-e4ac8a8bd3df"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "04Hi6aLuBDWYSQtOAd9yZU"
},
{
"__type__": "cc.Node",
"_name": "apple",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_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": 147,
"height": 154
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-575.812,
112.828,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e4pU4oCNVNhLumLnzlMIRS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8c38b8f0-a7a6-4616-958c-8caa0f86b6aa"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "63KAjStDdG+J/1flqB18oj"
},
{
"__type__": "cc.Node",
"_name": "doll",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 119,
"height": 187
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-583.539,
-149.331,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "153JThhpBNO5At9lkkYaSS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d82d56e1-2b92-4a67-b40e-4832c96f458f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "ee+81hl2VDkLG5b9WhoWMQ"
},
{
"__type__": "cc.Node",
"_name": "car",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 209,
"height": 114
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-571.921,
-412.406,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "14vc5wEVxBrZuFy7kVrmdx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "04ad048f-11bf-48fb-ace5-035a41fa636d"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1b5zQWidhMF7VjT4APKkbC"
},
{
"__type__": "cc.Node",
"_name": "desk",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 171,
"height": 167
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-291.769,
-427.316,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "dbbfN35/hLR7OnRxS2gyP8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1e8cfdb2-9bfb-4615-8f8e-ffcdf0213144"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "21Q8n1FuJHV6GkupJu6MIu"
},
{
"__type__": "cc.Node",
"_name": "ax",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 186,
"height": 203
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-38.906,
-429.913,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "af7ONDFulLX4QdWudTBNgX"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6c00e05c-fe9b-459c-841c-432bdd8a4730"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "faid+nr7JCEIkzxj06YZ60"
},
{
"__type__": "cc.Node",
"_name": "fish",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 233,
"height": 121
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
245.821,
-420.424,
0,
0,
0,
0,
1,
1.34,
1.34,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2fuRBcnjJNJ7hLDDk9FfFF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "57e07c08-0810-4191-8151-15815c4ebb7b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0,
"z": 0
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "2a3PegIYRDwov9e9me+6qR"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fbrsG8L45KyK+6Ui/2LOqa"
},
{
"__type__": "cc.Node",
"_name": "diceBg",
"_name": "banana",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 22
},
"_children": [
{
"__id__": 10
},
{
"__id__": 12
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 54
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -504,8 +2697,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 212,
"height": 182
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -516,15 +2709,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-149.331,
-2.297,
258.514,
-174.486,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -539,20 +2732,52 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5fZYXrNDZCS7TXTOUvqLd6"
"_id": "a59lyl17VIXIjeqTKCrd29"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "de55a263-2fbb-4727-a63b-44c757529c87"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5206l+kQBLJ62vL0ymCFwD"
},
{
"__type__": "cc.Node",
"_name": "dice",
"_name": "elbow",
"_objFlags": 0,
"_parent": {
"__id__": 9
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
"__id__": 56
}
],
"_prefab": null,
......@@ -566,8 +2791,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 565,
"height": 565
"width": 181,
"height": 170
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -578,15 +2803,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
268.795,
105.68,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -601,14 +2826,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "51/mFfUtNPKpRb4QUus9v8"
"_id": "b12i5CEWdDPbj6SlGGi6zD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 55
},
"_enabled": true,
"_materials": [
......@@ -619,7 +2844,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c335444d-5b10-40c1-afc1-6e5f5151b6a9"
"__uuid__": "5586910f-fe59-492e-a3ed-62fa855790a6"
},
"_type": 0,
"_sizeMode": 1,
......@@ -633,20 +2858,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1evXM5BgpNXKdgnSmaUqVs"
"_id": "e4zkJb08RBm5wQKQ3+exW0"
},
{
"__type__": "cc.Node",
"_name": "point",
"_name": "bird",
"_objFlags": 0,
"_parent": {
"__id__": 9
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 58
}
],
"_prefab": null,
......@@ -660,27 +2885,27 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 43,
"height": 108
"width": 172,
"height": 143
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
551.375,
98.788,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -695,14 +2920,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f9fj6VMo9Gqo5K08zSYASP"
"_id": "55BnydG3lNAZSQK7SslRja"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 57
},
"_enabled": true,
"_materials": [
......@@ -713,7 +2938,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cb763712-7b0a-450e-b2db-821b915af067"
"__uuid__": "863ade14-4677-42c7-b655-4f8b9d31e0bb"
},
"_type": 0,
"_sizeMode": 1,
......@@ -727,20 +2952,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c7aqEns0NGnYKWQrcCYi+8"
"_id": "26YRHBJXZLqpS0R8KPCVVq"
},
{
"__type__": "cc.Node",
"_name": "hat",
"_name": "egg",
"_objFlags": 0,
"_parent": {
"__id__": 9
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 60
}
],
"_prefab": null,
......@@ -754,8 +2979,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 156,
"height": 155
"width": 112,
"height": 149
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -766,15 +2991,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
578.944,
-402.044,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -789,14 +3014,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5bx5ikgqNAtoOgW53gUdZp"
"_id": "a8cksmMdRNdIYNq2y+MAlY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 59
},
"_enabled": true,
"_materials": [
......@@ -807,7 +3032,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "4fb05006-f192-4fa2-a680-64030ca06442"
"__uuid__": "acc278f9-b5f4-4288-93d1-5a30e5dc35cf"
},
"_type": 0,
"_sizeMode": 1,
......@@ -821,22 +3046,22 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "36ctt3aVdB+rALZBlY4eqX"
"_id": "e9oygoBsZDVbjPqjEUztAR"
},
{
"__type__": "cc.Node",
"_name": "pieces",
"_name": "bear",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 22
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 62
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -848,8 +3073,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 201,
"height": 158
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -860,15 +3085,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
573.866,
-696.421,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -883,18 +3108,54 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a4P7I/RmNL8px1EHcnKTp9"
"_id": "f8UFHKTdVAP4jLqu1w6jWe"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "10b8b2ab-5c5c-4b4d-9f0a-f61ec3324468"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b7HbUEdspMbKdY8ScovyAe"
},
{
"__type__": "cc.Node",
"_name": "piece_0",
"_name": "duck",
"_objFlags": 0,
"_parent": {
"__id__": 16
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 64
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -906,8 +3167,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 250,
"height": 250
"width": 141,
"height": 109
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -918,15 +3179,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-530.699,
689.218,
303.256,
-721.383,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -941,20 +3202,52 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "986knaxLhDP7ktm29qlKGk"
"_id": "e0JJ42ir5KkYYlB/SArJK2"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bcb70583-09ee-428d-bb91-222549163078"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "caIJUB8FtKuJQmVn8kwsBK"
},
{
"__type__": "cc.Node",
"_name": "pieceRed",
"_name": "elephant",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 66
}
],
"_prefab": null,
......@@ -968,8 +3261,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 155,
"height": 217
"width": 210,
"height": 169
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -980,15 +3273,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
921.256,
-707.598,
22.974005199999965,
-716.7879968,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -1003,14 +3296,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f7TyvUU55DoYm4SUW6dFv4"
"_id": "f3OXevuHpNIq0S/IkO9lxl"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -1021,7 +3314,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3b654b77-15b6-435a-b6ed-1e56fb2b744f"
"__uuid__": "810735cf-f63e-4e2b-b796-09b09026e6d8"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1035,20 +3328,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "04HgatWhpMoIw2Wg5HfHUE"
"_id": "deA0jpfoZD+71cCh2Gf5oT"
},
{
"__type__": "cc.Node",
"_name": "pieceBlue",
"_name": "alligator",
"_objFlags": 0,
"_parent": {
"__id__": 8
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 68
}
],
"_prefab": null,
......@@ -1062,8 +3355,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 155,
"height": 217
"width": 247,
"height": 90
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1074,15 +3367,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-938.793,
-701.08,
-282.07,
-756.726,
0,
0,
0,
0,
1,
1,
1,
1.34,
1.34,
1
]
},
......@@ -1097,14 +3390,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b5qt0PHa1C4IdPRDv/aYOp"
"_id": "b6F5ci++lDM7y3sFaVc1F7"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 67
},
"_enabled": true,
"_materials": [
......@@ -1115,7 +3408,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "05bb600e-fea4-49bd-9e1b-82d418cfa758"
"__uuid__": "9b768bf7-cf8c-49b3-84e8-8c9b0e6e4107"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1129,7 +3422,7 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "58ZLCqEjVJp64IOqQaj7Ok"
"_id": "caV2T0995D8K32d6bhus/Q"
},
{
"__type__": "cc.Sprite",
......@@ -1172,13 +3465,13 @@
},
"_children": [
{
"__id__": 24
"__id__": 71
},
{
"__id__": 30
"__id__": 77
},
{
"__id__": 32
"__id__": 79
}
],
"_active": true,
......@@ -1236,17 +3529,17 @@
"_name": "life_blue",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 70
},
"_children": [
{
"__id__": 25
"__id__": 72
}
],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 76
}
],
"_prefab": null,
......@@ -1302,17 +3595,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 24
"__id__": 71
},
"_children": [
{
"__id__": 26
"__id__": 73
}
],
"_active": true,
"_components": [
{
"__id__": 28
"__id__": 75
}
],
"_prefab": null,
......@@ -1368,13 +3661,13 @@
"_name": "prograssbar",
"_objFlags": 0,
"_parent": {
"__id__": 25
"__id__": 72
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 74
}
],
"_prefab": null,
......@@ -1430,7 +3723,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -1462,7 +3755,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 72
},
"_enabled": true,
"_materials": [
......@@ -1482,7 +3775,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -1514,13 +3807,13 @@
"_name": "dice_bg",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 78
}
],
"_prefab": null,
......@@ -1576,7 +3869,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 77
},
"_enabled": true,
"_materials": [
......@@ -1608,13 +3901,13 @@
"_name": "pieceBlue",
"_objFlags": 0,
"_parent": {
"__id__": 23
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 80
}
],
"_prefab": null,
......@@ -1670,7 +3963,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -1706,13 +3999,13 @@
},
"_children": [
{
"__id__": 35
"__id__": 82
},
{
"__id__": 41
"__id__": 88
},
{
"__id__": 43
"__id__": 90
}
],
"_active": true,
......@@ -1770,17 +4063,17 @@
"_name": "life_blue",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 81
},
"_children": [
{
"__id__": 36
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 87
}
],
"_prefab": null,
......@@ -1836,17 +4129,17 @@
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 35
"__id__": 82
},
"_children": [
{
"__id__": 37
"__id__": 84
}
],
"_active": true,
"_components": [
{
"__id__": 39
"__id__": 86
}
],
"_prefab": null,
......@@ -1902,13 +4195,13 @@
"_name": "prograssbar",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 83
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 85
}
],
"_prefab": null,
......@@ -1964,7 +4257,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 84
},
"_enabled": true,
"_materials": [
......@@ -1996,7 +4289,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 83
},
"_enabled": true,
"_materials": [
......@@ -2016,7 +4309,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -2048,13 +4341,13 @@
"_name": "dice_bg",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 81
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 89
}
],
"_prefab": null,
......@@ -2110,7 +4403,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -2142,13 +4435,13 @@
"_name": "pieceRed",
"_objFlags": 0,
"_parent": {
"__id__": 34
"__id__": 81
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 91
}
],
"_prefab": null,
......@@ -2204,7 +4497,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 90
},
"_enabled": true,
"_materials": [
......
......@@ -33,25 +33,20 @@ export default class SceneComponent extends MyCocosSceneComponent {
async initData() {
this.networkHelper = new NetworkHelper();
let cacertFile;
const cacertNode = cc.find('cacertNode');
if (cacertNode) {
cacertFile = cacertNode.getComponent('cacert').cacertFile;
}
await this.networkHelper.initRoom(cacertFile);
// this.networkHelper.initListener();
await this.networkHelper.initRoom();
this.playerId = await this.networkHelper.joinRoom('op_16', 2);
// const roomInfo = this.networkHelper.getRoomInfo();
// if (roomInfo.playerList.length == roomInfo.maxPlayers) {
// if (this.playerId == roomInfo.playerList[0].id) {
// this.networkHelper.startGame();
// }
// }
// roomInfo.playerList.forEach(player => {
// // const startPos = JSON.parse(player.customProfile);
// // this.createTank(player.id, startPos);
// });
const roomInfo = this.networkHelper.getRoomInfo();
if (roomInfo.playerList.length == roomInfo.maxPlayers) {
if (this.playerId == roomInfo.playerList[0].id) {
this.networkHelper.startGame();
}
}
roomInfo.playerList.forEach(player => {
// const startPos = JSON.parse(player.customProfile);
// this.createTank(player.id, startPos);
});
this.networkHelper.on('playerJoin', (event) => {
const roomInfo = this.networkHelper.getRoomInfo();
......
{
"ver": "1.1.2",
"uuid": "70674558-1a2c-4db0-a8b3-e82ee8ec6700",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dc66cdd6-146b-48d7-9d91-a66bfff63a0c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 247,
"height": 90,
"platformSettings": {},
"subMetas": {
"alligator": {
"ver": "1.0.4",
"uuid": "9b768bf7-cf8c-49b3-84e8-8c9b0e6e4107",
"rawTextureUuid": "dc66cdd6-146b-48d7-9d91-a66bfff63a0c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 247,
"height": 90,
"rawWidth": 247,
"rawHeight": 90,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3b76113d-2fc0-4e0d-b465-16f64d80421f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 149,
"height": 122,
"platformSettings": {},
"subMetas": {
"ant": {
"ver": "1.0.4",
"uuid": "73c87047-363f-46ed-81f3-3dd65bbad6e5",
"rawTextureUuid": "3b76113d-2fc0-4e0d-b465-16f64d80421f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 149,
"height": 122,
"rawWidth": 149,
"rawHeight": 122,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "27fcce91-8d26-48c5-9caa-ffea5c24f2b7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 147,
"height": 154,
"platformSettings": {},
"subMetas": {
"apple": {
"ver": "1.0.4",
"uuid": "8c38b8f0-a7a6-4616-958c-8caa0f86b6aa",
"rawTextureUuid": "27fcce91-8d26-48c5-9caa-ffea5c24f2b7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 147,
"height": 154,
"rawWidth": 147,
"rawHeight": 154,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5b742e97-a911-47c9-a28c-01cb82242e82",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 186,
"height": 203,
"platformSettings": {},
"subMetas": {
"ax": {
"ver": "1.0.4",
"uuid": "6c00e05c-fe9b-459c-841c-432bdd8a4730",
"rawTextureUuid": "5b742e97-a911-47c9-a28c-01cb82242e82",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 186,
"height": 203,
"rawWidth": 186,
"rawHeight": 203,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e5be515e-680f-4bcd-bcb9-c35974e55ba7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 212,
"height": 182,
"platformSettings": {},
"subMetas": {
"banana": {
"ver": "1.0.4",
"uuid": "de55a263-2fbb-4727-a63b-44c757529c87",
"rawTextureUuid": "e5be515e-680f-4bcd-bcb9-c35974e55ba7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 212,
"height": 182,
"rawWidth": 212,
"rawHeight": 182,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5657c02b-f554-424f-9f3f-3ab424f374f3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 201,
"height": 158,
"platformSettings": {},
"subMetas": {
"bear": {
"ver": "1.0.4",
"uuid": "10b8b2ab-5c5c-4b4d-9f0a-f61ec3324468",
"rawTextureUuid": "5657c02b-f554-424f-9f3f-3ab424f374f3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 201,
"height": 158,
"rawWidth": 201,
"rawHeight": 158,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2dd6da46-0f4f-4378-9526-3786d7090859",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 209,
"height": 165,
"platformSettings": {},
"subMetas": {
"bed": {
"ver": "1.0.4",
"uuid": "244e49a4-bd83-4f7d-9eb3-48bf20c9c807",
"rawTextureUuid": "2dd6da46-0f4f-4378-9526-3786d7090859",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 209,
"height": 165,
"rawWidth": 209,
"rawHeight": 165,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b436e1b7-b679-4e73-a974-1a9bf81d1f4c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 172,
"height": 143,
"platformSettings": {},
"subMetas": {
"bird": {
"ver": "1.0.4",
"uuid": "863ade14-4677-42c7-b655-4f8b9d31e0bb",
"rawTextureUuid": "b436e1b7-b679-4e73-a974-1a9bf81d1f4c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 172,
"height": 143,
"rawWidth": 172,
"rawHeight": 143,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "06d481a5-af91-4dfb-840e-4a5e33fd6401",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 209,
"height": 114,
"platformSettings": {},
"subMetas": {
"car": {
"ver": "1.0.4",
"uuid": "04ad048f-11bf-48fb-ace5-035a41fa636d",
"rawTextureUuid": "06d481a5-af91-4dfb-840e-4a5e33fd6401",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 209,
"height": 114,
"rawWidth": 209,
"rawHeight": 114,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ead5df19-44eb-42ae-8255-b3d4c6b8d952",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 176,
"height": 147,
"platformSettings": {},
"subMetas": {
"cat": {
"ver": "1.0.4",
"uuid": "df29829b-8e4e-43d8-96b3-173795a1f8ac",
"rawTextureUuid": "ead5df19-44eb-42ae-8255-b3d4c6b8d952",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 176,
"height": 147,
"rawWidth": 176,
"rawHeight": 147,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e4c6a637-96ed-4df7-8a53-ec479306fdc7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 199,
"height": 192,
"platformSettings": {},
"subMetas": {
"computer": {
"ver": "1.0.4",
"uuid": "cb81a696-9714-4858-b79e-3fedea357230",
"rawTextureUuid": "e4c6a637-96ed-4df7-8a53-ec479306fdc7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 199,
"height": 192,
"rawWidth": 199,
"rawHeight": 192,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "bfe0c4b0-3ba6-4a88-b506-694ede89ca43",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 171,
"height": 167,
"platformSettings": {},
"subMetas": {
"desk": {
"ver": "1.0.4",
"uuid": "1e8cfdb2-9bfb-4615-8f8e-ffcdf0213144",
"rawTextureUuid": "bfe0c4b0-3ba6-4a88-b506-694ede89ca43",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 171,
"height": 167,
"rawWidth": 171,
"rawHeight": 167,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "91d6e35c-f421-4c4a-a3d8-8704aba05430",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 218,
"height": 168,
"platformSettings": {},
"subMetas": {
"dog": {
"ver": "1.0.4",
"uuid": "919b3949-a2fa-46a6-8989-f205872e46e7",
"rawTextureUuid": "91d6e35c-f421-4c4a-a3d8-8704aba05430",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 218,
"height": 168,
"rawWidth": 218,
"rawHeight": 168,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "50daa155-ab70-41ae-a5b5-6c22e46c8759",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 119,
"height": 187,
"platformSettings": {},
"subMetas": {
"doll": {
"ver": "1.0.4",
"uuid": "d82d56e1-2b92-4a67-b40e-4832c96f458f",
"rawTextureUuid": "50daa155-ab70-41ae-a5b5-6c22e46c8759",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 119,
"height": 187,
"rawWidth": 119,
"rawHeight": 187,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0aa7aaf9-5672-4d0a-b2d3-f1eca0906813",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 141,
"height": 109,
"platformSettings": {},
"subMetas": {
"duck": {
"ver": "1.0.4",
"uuid": "bcb70583-09ee-428d-bb91-222549163078",
"rawTextureUuid": "0aa7aaf9-5672-4d0a-b2d3-f1eca0906813",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 141,
"height": 109,
"rawWidth": 141,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d758e0da-c30b-4a1f-9033-b43b0ac3930c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 112,
"height": 149,
"platformSettings": {},
"subMetas": {
"egg": {
"ver": "1.0.4",
"uuid": "acc278f9-b5f4-4288-93d1-5a30e5dc35cf",
"rawTextureUuid": "d758e0da-c30b-4a1f-9033-b43b0ac3930c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 112,
"height": 149,
"rawWidth": 112,
"rawHeight": 149,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f9d8b802-3550-45d7-bf86-6ad564f29a7c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 181,
"height": 170,
"platformSettings": {},
"subMetas": {
"elbow": {
"ver": "1.0.4",
"uuid": "5586910f-fe59-492e-a3ed-62fa855790a6",
"rawTextureUuid": "f9d8b802-3550-45d7-bf86-6ad564f29a7c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 181,
"height": 170,
"rawWidth": 181,
"rawHeight": 170,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2344743f-7fe7-4f00-9d31-28feeec1c193",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 210,
"height": 169,
"platformSettings": {},
"subMetas": {
"elephant": {
"ver": "1.0.4",
"uuid": "810735cf-f63e-4e2b-b796-09b09026e6d8",
"rawTextureUuid": "2344743f-7fe7-4f00-9d31-28feeec1c193",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 210,
"height": 169,
"rawWidth": 210,
"rawHeight": 169,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "27b946d3-ffad-4328-b504-ca2c9694cc3a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 167,
"height": 133,
"platformSettings": {},
"subMetas": {
"envelope": {
"ver": "1.0.4",
"uuid": "e15c3a2f-84f8-452f-9351-b02ec37ea3fb",
"rawTextureUuid": "27b946d3-ffad-4328-b504-ca2c9694cc3a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 167,
"height": 133,
"rawWidth": 167,
"rawHeight": 133,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3e472bd4-1f99-4a5c-8f00-519aee62f58b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 177,
"height": 131,
"platformSettings": {},
"subMetas": {
"fan": {
"ver": "1.0.4",
"uuid": "418b3bae-b458-476b-88af-e89b59693eaa",
"rawTextureUuid": "3e472bd4-1f99-4a5c-8f00-519aee62f58b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 177,
"height": 131,
"rawWidth": 177,
"rawHeight": 131,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "fdea02e6-4c62-455d-bc32-302a511a547f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 233,
"height": 121,
"platformSettings": {},
"subMetas": {
"fish": {
"ver": "1.0.4",
"uuid": "57e07c08-0810-4191-8151-15815c4ebb7b",
"rawTextureUuid": "fdea02e6-4c62-455d-bc32-302a511a547f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 233,
"height": 121,
"rawWidth": 233,
"rawHeight": 121,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "967b8387-0dea-40b2-9264-60ada34fb97a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 184,
"height": 145,
"platformSettings": {},
"subMetas": {
"fork": {
"ver": "1.0.4",
"uuid": "8309d0f6-4d8d-4e3b-ab75-e4ac8a8bd3df",
"rawTextureUuid": "967b8387-0dea-40b2-9264-60ada34fb97a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 184,
"height": 145,
"rawWidth": 184,
"rawHeight": 145,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ad7f7552-623d-499f-8997-eedbb742a901",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 184,
"height": 87,
"platformSettings": {},
"subMetas": {
"tea": {
"ver": "1.0.4",
"uuid": "5ab25ead-3f4f-4b09-8c38-113693114a09",
"rawTextureUuid": "ad7f7552-623d-499f-8997-eedbb742a901",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 184,
"height": 87,
"rawWidth": 184,
"rawHeight": 87,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "0d16e2b9-fdd6-4d66-bca3-c74d7eab2134",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ba7cfff6-9d3b-4c17-8cfe-0f253578f734",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 95,
"height": 95,
"platformSettings": {},
"subMetas": {
"prograssbar_light": {
"ver": "1.0.4",
"uuid": "003d9202-6c8b-4161-9866-fd33e95c843c",
"rawTextureUuid": "ba7cfff6-9d3b-4c17-8cfe-0f253578f734",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 95,
"height": 95,
"rawWidth": 95,
"rawHeight": 95,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "07946b28-6576-47cc-a570-9de70791159a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 174,
"height": 169,
"platformSettings": {},
"subMetas": {
"star_01": {
"ver": "1.0.4",
"uuid": "1f2bd6e5-dfe4-4b37-a62b-c9031bc01d99",
"rawTextureUuid": "07946b28-6576-47cc-a570-9de70791159a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 174,
"height": 169,
"rawWidth": 174,
"rawHeight": 169,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
const express = require('express');
const os = require('os');
const readline = require('readline');
const Base64 = require('js-base64');
const CryptoJS = require("crypto-js");
const { build, buildAndroid, buildIos } = require('./buildCocos');
const networkInfo = os.networkInterfaces();
......@@ -18,11 +20,31 @@ for (const infos of Object.values(networkInfo)) {
var app = express();
// Access-Control-Allow-Origin: *
app.use('/dist', express.static('dist'));
app.get('/', function (req, res) {
res.header("Access-Control-Allow-Origin", "*");
res.send('Hello World');
})
});
app.get('/getSign', function (req, res) {
res.header("Access-Control-Allow-Origin", "*");
const gameId = req.query.gameId;
const openId = req.query.openId;
const secretKey = "060d81c7abaf24c8ce2afc5a725c152062676d35"; //替换为控制台上的 游戏 Key
const nonce = Math.floor(Math.random() * 1000000000);
const timestamp = Math.floor(new Date().getTime() / 1000);
const str = `game_id=${gameId}&nonce=${nonce}&open_id=${openId}&timestamp=${timestamp}`;
const sign = CryptoJS.enc.Base64.stringify(CryptoJS.HmacSHA1(str, secretKey));
res.send(JSON.stringify({ nonce, timestamp, sign }));
});
let port = '';
var server = app.listen(8081, function () {
......
......@@ -4,6 +4,11 @@
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@types/crypto-js": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.0.2.tgz",
"integrity": "sha512-sCVniU+h3GcGqxOmng11BRvf9TfN9yIs8KKjB8C8d75W69cpTfZG80gau9yTx5SxF3gvHGbJhdESzzvnjtf3Og=="
},
"accepts": {
"version": "1.3.7",
"resolved": "https://registry.npm.taobao.org/accepts/download/accepts-1.3.7.tgz",
......@@ -144,6 +149,16 @@
"resolved": "https://registry.nlark.com/core-util-is/download/core-util-is-1.0.3.tgz",
"integrity": "sha1-pgQtNjTCsn6TKPg3uWX6yDgI24U="
},
"crypto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz",
"integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig=="
},
"crypto-js": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
},
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmmirror.com/debug/download/debug-2.6.9.tgz",
......
......@@ -11,11 +11,14 @@
"author": "",
"license": "ISC",
"dependencies": {
"@types/crypto-js": "^4.0.2",
"base-64": "^1.0.0",
"child_process": "^1.0.2",
"compressing": "^1.5.1",
"crypto": "^1.0.1",
"crypto-js": "^4.1.1",
"express": "^4.17.1",
"js-base64": "^3.7.2",
"uuid": "^8.3.2",
"child_process": "^1.0.2",
"express": "^4.17.1"
"uuid": "^8.3.2"
}
}
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