Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy04_pinci
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
hy04_pinci
Commits
8e5c4ee1
Commit
8e5c4ee1
authored
Sep 16, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
04处理
parent
66300a50
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
71 deletions
+28
-71
hy04_pinci.ts
assets/hy04_pinci/scene/hy04_pinci.ts
+22
-15
defaultData_hy04_pinci.ts
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
+4
-55
project.json
project.json
+2
-1
No files found.
assets/hy04_pinci/scene/hy04_pinci.ts
View file @
8e5c4ee1
...
...
@@ -175,21 +175,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
this
.
successGroupIds
[
idx
])
success
=
false
;
}
if
(
!
success
)
return
;
this
.
scheduleOnce
(()
=>
{
pg
.
event
.
once
(
'
layer_right_show_excellent_end
'
,
()
=>
{
pg
.
event
.
once
(
'
layer_coin_show_coin_end
'
,
()
=>
{
this
.
curIndex
++
;
if
(
!
this
.
CurrentWord
)
{
// alert("游戏结束画面暂无")
this
.
gameOver
();
}
else
{
this
.
showWord
();
}
})
// 动画回调
pg
.
event
.
emit
(
'
layer_coin_show_coin
'
,
3
)
//1 2 3硬币数量
})
pg
.
event
.
emit
(
'
layer_right_show_excellent
'
)
},
0.2
)
this
.
scheduleOnce
(()
=>
{
pg
.
audio
.
playAudioByUrl
(
this
.
CurrentWord
.
audio
,
()
=>
{
this
.
audioId
=
null
;
pg
.
event
.
once
(
'
layer_right_show_excellent_end
'
,
()
=>
{
pg
.
event
.
once
(
'
layer_coin_show_coin_end
'
,
()
=>
{
this
.
curIndex
++
;
if
(
!
this
.
CurrentWord
)
{
// alert("游戏结束画面暂无")
this
.
gameOver
();
}
else
{
this
.
showWord
();
}
})
// 动画回调
pg
.
event
.
emit
(
'
layer_coin_show_coin
'
,
3
)
//1 2 3硬币数量
})
pg
.
event
.
emit
(
'
layer_right_show_excellent
'
)
},
(
audioId
)
=>
{
this
.
audioId
=
audioId
;
})
},
0.5
)
}
//单词的展示
showWord
()
{
...
...
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
View file @
8e5c4ee1
...
...
@@ -7,11 +7,11 @@ export const defaultData =
"
questionTextAudio
"
:
""
,
"
questions
"
:
[
{
"
questionAudio
"
:
""
,
"
questionAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/172fad3743476ac9c668eb8a82d5eca1_l.mp3
"
,
"
duration
"
:
120
,
"
type
"
:
"
img
"
,
"
image
"
:
"
"
,
//http://staging-teach.cdn.ireadabc.com/e184e067fc931d55fce93c9937a26c51.png
"
audio
"
:
""
,
"
type
"
:
"
img
Audio
"
,
"
image
"
:
"
http://staging-teach.cdn.ireadabc.com/e184e067fc931d55fce93c9937a26c51.png
"
,
//
"
audio
"
:
"
http://staging-teach.cdn.ireadabc.com/172fad3743476ac9c668eb8a82d5eca1_l.mp3
"
,
"
text
"
:
""
,
"
right
"
:
false
,
//magical golden stick
...
...
@@ -24,57 +24,6 @@ export const defaultData =
},
{
"
text
"
:
"
g
"
},
{
"
text
"
:
"
i
"
},
{
"
text
"
:
"
c
"
},
{
"
text
"
:
"
a
"
},
{
"
text
"
:
"
l
"
},
{
"
text
"
:
"
"
},
{
"
text
"
:
"
g
"
},
{
"
text
"
:
"
o
"
},
{
"
text
"
:
"
l
"
},
{
"
text
"
:
"
d
"
},
{
"
text
"
:
"
e
"
},
{
"
text
"
:
"
n
"
},
{
"
text
"
:
"
"
},
{
"
text
"
:
"
s
"
},
{
"
text
"
:
"
t
"
},
{
"
text
"
:
"
i
"
},
{
"
text
"
:
"
c
"
},
{
"
text
"
:
"
k
"
}
]
},
...
...
project.json
View file @
8e5c4ee1
...
...
@@ -4,5 +4,6 @@
"name"
:
"play"
,
"id"
:
"9af72fd2-44a6-4131-8ea3-3e1b3fa22231"
,
"version"
:
"2.4.5"
,
"isNew"
:
false
"isNew"
:
false
,
"description"
:
""
}
\ No newline at end of file
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