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

feat:

parent e1a8a636
No preview for this file type
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "4e259305-46b1-43d9-8d93-25fea822e0d9", "uuid": "cef41626-c90e-41f1-a964-e90cb843baab",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.0.0", "ver": "2.0.0",
"uuid": "de16aac1-0c28-4863-91c6-20105020daae", "uuid": "b0e70fce-94a7-427f-b396-142d8f036737",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "291a4bb1-3d0d-41ce-9506-c5808b1d2081", "uuid": "19c7da79-785a-4dac-832d-a205dd7b9468",
"isPlugin": true, "isPlugin": true,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"type": "software", "type": "software",
"scope": "game", "scope": "game",
"name": "GameOBESDK", "name": "GameOBESDK",
"version": "1.1.4.300", "version": "1.1.4.301",
"playbook": "" "playbook": ""
} }
\ No newline at end of file
{ {
"ver": "1.0.0", "ver": "1.0.0",
"uuid": "f7dd520f-d3cf-4b95-b0c3-9f3a7ee3d7c6", "uuid": "68d46fb9-7d79-4b81-b649-530ebfebeb02",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
...@@ -57,6 +57,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -57,6 +57,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playerId = await this.networkHelper.init("op_16", 2); this.playerId = await this.networkHelper.init("op_16", 2);
console.log('this.playerId = ' + this.playerId);
const room = this.networkHelper.room; const room = this.networkHelper.room;
if (this.playerId == room.ownerId) { if (this.playerId == room.ownerId) {
console.log("房主"); console.log("房主");
...@@ -644,8 +646,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -644,8 +646,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else { } else {
dataList.push(frameData); dataList.push(frameData);
} }
dataList.forEach(async (itemStr) => { dataList.forEach(async (item) => {
const item = JSON.parse(itemStr); console.log(item);
return;
if (this.server) { if (this.server) {
this.server.onFrameEvent(item.data); this.server.onFrameEvent(item.data);
} }
......
...@@ -47,7 +47,7 @@ export class GameServer { ...@@ -47,7 +47,7 @@ export class GameServer {
name: this.nameList.splice(0, 1)[0], name: this.nameList.splice(0, 1)[0],
uuid: player.uuid, uuid: player.uuid,
color: color:
player.uuid == this.networkHelper.room.roomInfo.owner ? "Blue" : "Red", player.uuid == this.networkHelper.room.ownerId ? "Blue" : "Red",
isAI: player.isAI, isAI: player.isAI,
headUrl: this.headUrls.splice(0, 1)[0], headUrl: this.headUrls.splice(0, 1)[0],
}); });
...@@ -81,7 +81,7 @@ export class GameServer { ...@@ -81,7 +81,7 @@ export class GameServer {
onPlayerJoin(event) { onPlayerJoin(event) {
this.addPlayer({ this.addPlayer({
uuid: event.data.joinPlayerId, uuid: event.playerId,
isAI: false, isAI: false,
}); });
} }
......
{
"ver": "1.0.8",
"uuid": "497a857a-a098-429a-97b0-c1a6ae0b2a16",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<title>Cocos Creator | hello_world</title> <title>Cocos Creator | hello_world</title>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/> <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/>
<meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/> <meta name="full-screen" content="yes"/>
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
"library", "library",
"local", "local",
"settings", "settings",
"form",
"form_angular",
"temp" "temp"
] ]
} }
\ No newline at end of file
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
{ {
"service_id": "269", "service_id": "269",
"enable": true "enable": true
},
{
"service_id": "304",
"enable": false
},
{
"service_id": "303",
"enable": false
} }
] ]
} }
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
"local", "local",
"temp", "temp",
"build", "build",
"form",
"form_angular",
"settings" "settings"
] ]
} }
\ No newline at end of file
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