Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn11_zmxz
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
sn11_zmxz
Commits
c2dae8a7
Commit
c2dae8a7
authored
Oct 25, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整旷工位置
修复最左边选项选择动画,旷工飞出屏幕的问题
parent
12aa1631
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
196 additions
and
109 deletions
+196
-109
sn11_zmxz.fire
assets/sn11_zmxz/scene/sn11_zmxz.fire
+185
-86
sn11_zmxz.js
assets/sn11_zmxz/scene/sn11_zmxz.js
+11
-5
defaultData_sn11_zmxz.js
assets/sn11_zmxz/script/defaultData_sn11_zmxz.js
+0
-18
No files found.
assets/sn11_zmxz/scene/sn11_zmxz.fire
View file @
c2dae8a7
This diff is collapsed.
Click to expand it.
assets/sn11_zmxz/scene/sn11_zmxz.js
View file @
c2dae8a7
...
...
@@ -144,15 +144,15 @@ cc.Class({
await
this
.
charactorMoveToTarget
(
idx
);
this
.
hideOtherOptions
(
idx
);
await
this
.
showCharactorAttack
();
await
this
.
showCharactorAttack
(
idx
);
imgBg0
.
active
=
false
;
imgBg1
.
active
=
true
;
await
this
.
showCharactorAttack
();
await
this
.
showCharactorAttack
(
idx
);
imgBg1
.
active
=
false
;
imgBg2
.
active
=
true
;
await
this
.
showCharactorAttack
();
await
this
.
showCharactorAttack
(
idx
);
nodeOption
.
active
=
false
;
this
.
showStar
(
idx
);
...
...
@@ -267,7 +267,7 @@ cc.Class({
this
.
showLight
();
await
this
.
charactorMoveToTarget
(
idx
);
await
this
.
showCharactorAttack
();
await
this
.
showCharactorAttack
(
idx
);
this
.
showSmoke
(
idx
);
this
.
playEffect
(
'
boom
'
);
...
...
@@ -286,12 +286,16 @@ cc.Class({
async
charactorMoveToTarget
(
idx
)
{
const
nodeCharactor
=
cc
.
find
(
'
Canvas/ImgCar/NodeCharactor
'
);
nodeCharactor
.
scaleX
=
idx
==
0
?
-
1
:
1
;
const
nodeCharactorTarget
=
cc
.
find
(
`Canvas/NodeOptions/NodeOption_
${
idx
}
/BtnOption/NodeCharactorTarget`
);
const
targetPos
=
exchangeNodePos
(
nodeCharactor
.
parent
,
nodeCharactorTarget
);
await
asyncTweenTo
(
nodeCharactor
,
0.5
,
{
x
:
targetPos
.
x
,
y
:
targetPos
.
y
},
{
easing
:
'
cubicInOut
'
});
},
async
showCharactorAttack
()
{
async
showCharactorAttack
(
idx
)
{
const
nodeCharactor
=
cc
.
find
(
'
Canvas/ImgCar/NodeCharactor
'
);
nodeCharactor
.
scaleX
=
idx
==
0
?
-
1
:
1
;
const
imgCharactor
=
cc
.
find
(
'
Canvas/ImgCar/NodeCharactor/ImgCharactor
'
);
const
dragonBoneNodeCharactor
=
cc
.
find
(
'
Canvas/ImgCar/NodeCharactor/DragonBoneNodeCharactor
'
);
...
...
@@ -304,6 +308,8 @@ cc.Class({
imgCharactor
.
active
=
true
;
dragonBoneNodeCharactor
.
active
=
false
;
nodeCharactor
.
scaleX
=
1
;
},
async
showSmoke
(
idx
)
{
...
...
assets/sn11_zmxz/script/defaultData_sn11_zmxz.js
View file @
c2dae8a7
...
...
@@ -12,23 +12,5 @@ module.exports = {
wrongWordList
:
[
'
ao
'
,
'
arl
'
],
wrongAudioList
:
[
'
ao.mp3
'
,
'
arl.mp3
'
],
}]
},
{
audio
:
'
banana
'
,
questionList
:
[{
rightAudio
:
'
baa
'
,
rightWord
:
'
ba
'
,
wrongWordList
:
[
'
pa
'
,
'
da
'
],
wrongAudioList
:
[
'
pa.mp3
'
,
'
da.mp3
'
],
},
{
rightAudio
:
'
na
'
,
rightWord
:
'
na
'
,
wrongWordList
:
[
'
ma
'
,
'
ha
'
],
wrongAudioList
:
[
'
ma.mp3
'
,
'
ha.mp3
'
],
},
{
rightAudio
:
'
na
'
,
rightWord
:
'
na
'
,
wrongWordList
:
[
'
ma
'
,
'
ha
'
],
wrongAudioList
:
[
'
ma.mp3
'
,
'
ha.mp3
'
],
}]
}],
}
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