Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_boardgame2
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
l2_boardgame2
Commits
ff8b98ce
Commit
ff8b98ce
authored
Jul 21, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语音部分bug修复
parent
ebb5ec03
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
6 deletions
+31
-6
l2_boardgame2.meta
assets/l2_boardgame2.meta
+15
-1
l2_boardgame2.fire
assets/l2_boardgame2/scene/l2_boardgame2.fire
+2
-2
l2_boardgame2.ts
assets/l2_boardgame2/scene/l2_boardgame2.ts
+12
-1
Server.ts
assets/l2_boardgame2/script/Server.ts
+1
-1
tree.png.meta
assets/l2_boardgame2/textures/tree.png.meta
+1
-1
No files found.
assets/l2_boardgame2.meta
View file @
ff8b98ce
{"ver":"1.1.2","uuid":"cee6c4c5-014d-49f2-821e-082f9291ab7e","isBundle":true,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":true,"android":true},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "cee6c4c5-014d-49f2-821e-082f9291ab7e",
"isBundle": true,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": true,
"android": true
},
"subMetas": {}
}
\ No newline at end of file
assets/l2_boardgame2/scene/l2_boardgame2.fire
View file @
ff8b98ce
...
...
@@ -6269,8 +6269,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
144
,
"height":
72
6
"width": 1
224.42
,
"height":
833.1
6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
assets/l2_boardgame2/scene/l2_boardgame2.ts
View file @
ff8b98ce
...
...
@@ -875,6 +875,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
idx
=
this
.
getNextRightIdx
();
const
pieceRed
=
cc
.
find
(
"
Canvas/bg/chessBoard/pieceRed
"
);
const
pieceBlue
=
cc
.
find
(
"
Canvas/bg/chessBoard/pieceBlue
"
);
const
node
=
cc
.
find
(
`Canvas/bg/chessBoard/piece
${
this
.
_status
.
current
}
`
);
node
[
"
touchStartPos
"
]
=
{
nodeX
:
node
.
x
,
nodeY
:
node
.
y
,
touchX
:
node
.
x
,
touchY
:
node
.
y
,
};
let
lastIdx
=
this
.
_status
[
playerMe
.
color
];
pieceRed
[
"
cantMove
"
]
=
false
;
pieceBlue
[
"
cantMove
"
]
=
false
;
await
this
.
pieceFindRightBlock
(
rightBlock
,
idx
);
...
...
@@ -890,6 +900,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
color
:
playerMe
.
color
,
});
}
else
{
this
.
_status
[
playerMe
.
color
]
=
lastIdx
this
.
networkHelper
.
sendFrame
({
type
:
"
wrong
"
,
uuid
:
playerMe
.
uuid
,
...
...
@@ -1189,7 +1200,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
}
async
recrodEnd
(
data
)
{
recrodEnd
(
data
)
{
// return true;
let
score
=
data
.
result
.
overall
;
let
isSuccess
=
this
.
checkWords
(
data
);
...
...
assets/l2_boardgame2/script/Server.ts
View file @
ff8b98ce
...
...
@@ -114,7 +114,7 @@ export class GameServer {
this
.
addPlayer
(
playerInfo
);
}
//TODO:调试加速
},
1000
0
)
//RandomInt(10000, 15000)
},
1000
)
//RandomInt(10000, 15000)
);
}
}
...
...
assets/l2_boardgame2/textures/tree.png.meta
View file @
ff8b98ce
...
...
@@ -8,7 +8,7 @@
"genMipmaps": false,
"packable": true,
"width": 656,
"height":
443
,
"height":
311
,
"platformSettings": {},
"subMetas": {
"tree": {
...
...
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