Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
op_16
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
op_16
Commits
e1889c5d
Commit
e1889c5d
authored
Jun 07, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
e1a8a636
Changes
16
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
36 additions
and
17 deletions
+36
-17
.DS_Store
.DS_Store
+0
-0
GOBE.meta
assets/GOBE.meta
+1
-1
GOBE.d.ts
assets/GOBE/GOBE.d.ts
+0
-0
GOBE.d.ts.meta
assets/GOBE/GOBE.d.ts.meta
+5
-0
GOBE.js
assets/GOBE/GOBE.js
+1
-1
GOBE.js.meta
assets/GOBE/GOBE.js.meta
+1
-1
package.json
assets/GOBE/package.json
+1
-1
package.json.meta
assets/GOBE/package.json.meta
+5
-0
op_16.ts
assets/op_16/scene/op_16.ts
+6
-2
Server.ts
assets/op_16/script/Server.ts
+2
-2
sdk.js
assets/op_16/script/gameobesdk-1.1.4.300/sdk.js
+0
-0
sdk.js.meta
assets/op_16/script/gameobesdk-1.1.4.300/sdk.js.meta
+0
-9
index.html
index.html
+2
-0
jsconfig.json
jsconfig.json
+2
-0
services.json
settings/services.json
+8
-0
tsconfig.json
tsconfig.json
+2
-0
No files found.
.DS_Store
View file @
e1889c5d
No preview for this file type
assets/
op_16/script/gameobesdk-1.1.4.300
.meta
→
assets/
GOBE
.meta
View file @
e1889c5d
{
{
"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,
...
...
assets/
op_16/script/gameobesdk-1.1.4.300
/GOBE.d.ts
→
assets/
GOBE
/GOBE.d.ts
View file @
e1889c5d
File moved
assets/
op_16/script/gameobesdk-1.1.4.300
/GOBE.d.ts.meta
→
assets/
GOBE
/GOBE.d.ts.meta
View file @
e1889c5d
{
{
"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
assets/
op_16/script/gameobesdk-1.1.4.300
/GOBE.js
→
assets/
GOBE
/GOBE.js
View file @
e1889c5d
This diff is collapsed.
Click to expand it.
assets/
op_16/script/gameobesdk-1.1.4.300
/GOBE.js.meta
→
assets/
GOBE
/GOBE.js.meta
View file @
e1889c5d
{
{
"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,
...
...
assets/
op_16/script/gameobesdk-1.1.4.300
/package.json
→
assets/
GOBE
/package.json
View file @
e1889c5d
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
"type"
:
"software"
,
"type"
:
"software"
,
"scope"
:
"game"
,
"scope"
:
"game"
,
"name"
:
"GameOBESDK"
,
"name"
:
"GameOBESDK"
,
"version"
:
"1.1.4.30
0
"
,
"version"
:
"1.1.4.30
1
"
,
"playbook"
:
""
"playbook"
:
""
}
}
\ No newline at end of file
assets/
op_16/script/gameobesdk-1.1.4.300
/package.json.meta
→
assets/
GOBE
/package.json.meta
View file @
e1889c5d
{
{
"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
assets/op_16/scene/op_16.ts
View file @
e1889c5d
...
@@ -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
);
}
}
...
...
assets/op_16/script/Server.ts
View file @
e1889c5d
...
@@ -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
.
joinP
layerId
,
uuid
:
event
.
p
layerId
,
isAI
:
false
,
isAI
:
false
,
});
});
}
}
...
...
assets/op_16/script/gameobesdk-1.1.4.300/sdk.js
deleted
100644 → 0
View file @
e1a8a636
assets/op_16/script/gameobesdk-1.1.4.300/sdk.js.meta
deleted
100644 → 0
View file @
e1a8a636
{
"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
index.html
View file @
e1889c5d
...
@@ -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"
/>
...
...
jsconfig.json
View file @
e1889c5d
...
@@ -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
settings/services.json
View file @
e1889c5d
...
@@ -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
}
}
]
]
}
}
...
...
tsconfig.json
View file @
e1889c5d
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment