Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sn14_dds
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
sn14_dds
Commits
131e02f3
Commit
131e02f3
authored
Sep 19, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改点击
parent
bf159242
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1064 additions
and
488 deletions
+1064
-488
Voice_sn14_dds.ts
assets/sn14_dds/scene/Voice_sn14_dds.ts
+1
-7
Voice_sn14_dds.ts.meta
assets/sn14_dds/scene/Voice_sn14_dds.ts.meta
+1
-1
sn14_dds.fire
assets/sn14_dds/scene/sn14_dds.fire
+1050
-474
sn14_dds.ts
assets/sn14_dds/scene/sn14_dds.ts
+12
-6
No files found.
assets/sn14_dds/scene/
Img
Voice_sn14_dds.ts
→
assets/sn14_dds/scene/Voice_sn14_dds.ts
View file @
131e02f3
...
...
@@ -53,10 +53,4 @@ export default class ImgVoice extends cc.Component {
p2
.
active
=
false
;
p3
.
active
=
false
;
}
}
}
\ No newline at end of file
assets/sn14_dds/scene/
Img
Voice_sn14_dds.ts.meta
→
assets/sn14_dds/scene/Voice_sn14_dds.ts.meta
View file @
131e02f3
{
"ver": "1.0.8",
"uuid": "
85bbc31f-4210-44bb-baa5-62d75887b2f3
",
"uuid": "
2473acff-be18-403b-ada4-4bc33b00ef35
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/sn14_dds/scene/sn14_dds.fire
View file @
131e02f3
This diff is collapsed.
Click to expand it.
assets/sn14_dds/scene/sn14_dds.ts
View file @
131e02f3
import
{
asyncDelay
,
onHomeworkFinish
}
from
"
../script/util_sn14_dds
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent_sn14_dds
"
;
import
pg
from
"
./pg_sn14_dds
"
;
import
ImgVoice
from
"
./
Img
Voice_sn14_dds
"
;
import
ImgVoice
from
"
./Voice_sn14_dds
"
;
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
...
...
@@ -109,7 +109,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
gameOver
();
return
;
}
this
.
canTouch
=
true
;
//TODO: 需要增加总倒计时
this
.
currentQuestion
.
options
=
this
.
currentQuestion
.
options
.
map
((
op
,
i
)
=>
{
op
.
id
=
i
;
...
...
@@ -155,12 +155,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 点击泡泡
touchPaoPao
(
e
:
any
)
{
// 点击之后不能再次点击
if
(
!
this
.
canTouch
)
return
;
this
.
canTouch
=
false
;
// 如果泡泡没有到指定位置不允许点击
let
item
=
e
.
target
;
let
data
=
e
.
target
.
data
;
if
(
data
.
right
)
{
this
.
rightList
.
push
(
data
);
this
.
updatePaoPaoRight
(
item
,
data
).
then
(()
=>
{
this
.
canTouch
=
true
;
if
(
this
.
rightList
.
length
==
this
.
currentRightList
.
length
)
{
this
.
freeArea
.
forEach
((
item
)
=>
{
this
.
udpatePaoPaoHide
(
item
);
...
...
@@ -173,7 +177,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
// 失败
pg
.
hw
.
playLocalAudio
(
'
error
'
)
this
.
updatePaoPaoError
(
item
,
data
)
this
.
updatePaoPaoError
(
item
,
data
).
then
(()
=>
{
this
.
canTouch
=
true
;
})
}
}
udpatePaoPaoHide
(
item
)
{
...
...
@@ -209,17 +215,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
defaultPicY
=
-
170
;
let
outPicY
=
105
;
cc
.
Tween
.
stopAllByTarget
(
bg_pic
);
cc
.
tween
(
bg_pic
).
delay
(
1
).
to
(
1
,
{
y
:
defaultPicY
}).
start
();
cc
.
tween
(
bg_pic
).
delay
(
1
/
3
).
to
(
1
/
3
,
{
y
:
defaultPicY
}).
start
();
}
else
{
let
defaultPicY
=
-
170
;
let
outPicY
=
80
;
cc
.
Tween
.
stopAllByTarget
(
bg_word
);
cc
.
tween
(
bg_word
).
delay
(
1
).
to
(
1
,
{
y
:
defaultPicY
}).
start
();
cc
.
tween
(
bg_word
).
delay
(
1
/
3
).
to
(
1
/
3
,
{
y
:
defaultPicY
}).
start
();
}
let
defaultMouseY
=
-
110
;
cc
.
Tween
.
stopAllByTarget
(
img_mouse
);
cc
.
tween
(
img_mouse
).
delay
(
1
).
to
(
1
,
{
y
:
defaultMouseY
}).
call
(()
=>
{
cc
.
tween
(
img_mouse
).
delay
(
1
/
3
).
to
(
1
/
3
,
{
y
:
defaultMouseY
}).
call
(()
=>
{
this
.
itemList
.
push
(
item
);
resolve
(
""
);
}).
start
();
...
...
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