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
e0f0ebe9
Commit
e0f0ebe9
authored
Mar 18, 2022
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修正语法错误
parent
6d3fbd89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
23 deletions
+9
-23
op_16.meta
assets/op_16.meta
+1
-15
op_16.ts
assets/op_16/scene/op_16.ts
+5
-5
Server.ts
assets/op_16/script/Server.ts
+3
-3
No files found.
assets/op_16.meta
View file @
e0f0ebe9
{
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2",
\ No newline at end of file
"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
assets/op_16/scene/op_16.ts
View file @
e0f0ebe9
...
@@ -141,8 +141,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -141,8 +141,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
start
();
.
start
();
});
});
const
dice
=
cc
.
find
(
"
Canvas/bg/chessBoard/diceBg/dice
"
);
const
dice
2
=
cc
.
find
(
"
Canvas/bg/chessBoard/diceBg/dice
"
);
dice
[
"
canClick
"
]
=
true
;
dice
2
[
"
canClick
"
]
=
true
;
}
}
stopBlinkTheDice
()
{
stopBlinkTheDice
()
{
...
@@ -153,8 +153,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -153,8 +153,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
node
.
scale
=
1
;
node
.
scale
=
1
;
node
.
opacity
=
255
;
node
.
opacity
=
255
;
});
});
const
dice
=
cc
.
find
(
"
Canvas/bg/chessBoard/diceBg/dice
"
);
const
dice
2
=
cc
.
find
(
"
Canvas/bg/chessBoard/diceBg/dice
"
);
dice
[
"
canClick
"
]
=
false
;
dice
2
[
"
canClick
"
]
=
false
;
}
}
greyDice
()
{
greyDice
()
{
...
@@ -602,7 +602,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -602,7 +602,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
delay
(
0.5
)
.
delay
(
0.5
)
.
to
(
0.5
,
{
opacity
:
0
})
.
to
(
0.5
,
{
opacity
:
0
})
.
call
(()
=>
{
.
call
(()
=>
{
resolve
();
resolve
(
null
);
})
})
.
start
();
.
start
();
});
});
...
...
assets/op_16/script/Server.ts
View file @
e0f0ebe9
...
@@ -107,7 +107,7 @@ export class GameServer {
...
@@ -107,7 +107,7 @@ export class GameServer {
}
}
async
onFrameEvent
(
data
)
{
async
onFrameEvent
(
data
)
{
if
(
this
.
gameStatus
.
gameOver
)
{
if
(
this
.
gameStatus
[
'
gameOver
'
]
)
{
return
;
return
;
}
}
if
(
data
.
type
==
"
roll
"
)
{
if
(
data
.
type
==
"
roll
"
)
{
...
@@ -128,7 +128,7 @@ export class GameServer {
...
@@ -128,7 +128,7 @@ export class GameServer {
type
:
"
SERVER_playerWin
"
,
type
:
"
SERVER_playerWin
"
,
color
:
this
.
gameStatus
.
current
,
color
:
this
.
gameStatus
.
current
,
});
});
this
.
gameStatus
.
gameOver
=
true
;
this
.
gameStatus
[
'
gameOver
'
]
=
true
;
}
}
}
else
if
(
data
.
type
==
"
right
"
)
{
}
else
if
(
data
.
type
==
"
right
"
)
{
if
(
this
.
gameStatus
.
letter
!=
""
)
{
if
(
this
.
gameStatus
.
letter
!=
""
)
{
...
@@ -149,7 +149,7 @@ export class GameServer {
...
@@ -149,7 +149,7 @@ export class GameServer {
type
:
"
SERVER_playerWin
"
,
type
:
"
SERVER_playerWin
"
,
color
:
this
.
gameStatus
.
current
,
color
:
this
.
gameStatus
.
current
,
});
});
this
.
gameStatus
.
gameOver
=
true
;
this
.
gameStatus
[
'
gameOver
'
]
=
true
;
}
}
}
else
{
}
else
{
console
.
log
(
'
汪汪汪
'
);
console
.
log
(
'
汪汪汪
'
);
...
...
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