Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L4R2_Boardgame_Beach
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
L4R2_Boardgame_Beach
Commits
5a213dcd
Commit
5a213dcd
authored
Nov 09, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
04702541
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
866 additions
and
783 deletions
+866
-783
背景.png
assets/L4R2_Boardgame_Beach/imags/背景.png
+0
-0
背景.png.meta
assets/L4R2_Boardgame_Beach/imags/背景.png.meta
+0
-37
L4R2_Boardgame_Beach.fire
assets/L4R2_Boardgame_Beach/scene/L4R2_Boardgame_Beach.fire
+862
-745
L4R2_Boardgame_Beach.ts
assets/L4R2_Boardgame_Beach/scene/L4R2_Boardgame_Beach.ts
+4
-1
No files found.
assets/L4R2_Boardgame_Beach/imags/背景.png
deleted
100644 → 0
View file @
04702541
770 KB
assets/L4R2_Boardgame_Beach/imags/背景.png.meta
deleted
100644 → 0
View file @
04702541
{
"ver": "2.3.5",
"uuid": "0466d0d3-525f-4561-acac-f93bec87cc63",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2560,
"height": 1920,
"platformSettings": {},
"subMetas": {
"背景": {
"ver": "1.0.4",
"uuid": "c350522a-bf06-4630-b63d-be50c12f73fc",
"rawTextureUuid": "0466d0d3-525f-4561-acac-f93bec87cc63",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2560,
"height": 1920,
"rawWidth": 2560,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/L4R2_Boardgame_Beach/scene/L4R2_Boardgame_Beach.fire
View file @
5a213dcd
This diff is collapsed.
Click to expand it.
assets/L4R2_Boardgame_Beach/scene/L4R2_Boardgame_Beach.ts
View file @
5a213dcd
...
...
@@ -331,6 +331,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// bg1.width = cc.winSize.width;
// bg1.height = cc.winSize.height;
let
shave
=
cc
.
find
(
"
Canvas/road/box/shave
"
);
shave
.
scaleX
=
this
.
_mapScaleMax
;
let
node1
=
cc
.
find
(
`Canvas/road/root/pieceRed`
);
node1
.
position
=
this
.
_redPointRoot
.
getChildByName
(
"
0
"
).
position
this
.
_myBear
=
node1
.
getChildByName
(
"
bear
"
)
...
...
@@ -554,7 +557,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
nowIdx
=
this
.
_status
[
this
.
_status
.
current
];
let
nextIdx
=
nowIdx
+
this
.
_status
.
step
;
this
.
playLocalAudio
(
"
piece
"
);
this
.
playLocalAudio
(
"
wrong
"
);
await
this
.
pieceMove
(
node
,
nowIdx
,
nextIdx
);
//todo
// this.playLocalAudio("wrong");
...
...
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