Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy03_zadan
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
hy03_zadan
Commits
7256b71c
Commit
7256b71c
authored
Oct 08, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9dbec023
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
515 additions
and
300 deletions
+515
-300
LayerRecord_hy03_zadan.ts
assets/hy03_zadan/common/script/LayerRecord_hy03_zadan.ts
+1
-1
hy03_zadan.fire
assets/hy03_zadan/scene/hy03_zadan.fire
+504
-298
hy03_zadan.ts
assets/hy03_zadan/scene/hy03_zadan.ts
+8
-0
defaultData_hy03_zadan.ts
assets/hy03_zadan/script/defaultData_hy03_zadan.ts
+2
-1
No files found.
assets/hy03_zadan/common/script/LayerRecord_hy03_zadan.ts
View file @
7256b71c
...
@@ -197,7 +197,7 @@ export default class LayerRecord extends cc.Component {
...
@@ -197,7 +197,7 @@ export default class LayerRecord extends cc.Component {
"
fluency
"
:
60
,
"
fluency
"
:
60
,
"
rhythm
"
:
90
,
"
rhythm
"
:
90
,
"
kernel_version
"
:
"
5.2.4
"
,
"
kernel_version
"
:
"
5.2.4
"
,
"
overall
"
:
55
,
//75
"
overall
"
:
1
,
//75
"
integrity
"
:
100
,
"
integrity
"
:
100
,
"
duration
"
:
"
6.779
"
,
"
duration
"
:
"
6.779
"
,
"
rear_tone
"
:
"
fall
"
,
"
rear_tone
"
:
"
fall
"
,
...
...
assets/hy03_zadan/scene/hy03_zadan.fire
View file @
7256b71c
This diff is collapsed.
Click to expand it.
assets/hy03_zadan/scene/hy03_zadan.ts
View file @
7256b71c
...
@@ -138,6 +138,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -138,6 +138,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
self
.
tempCount
==
2
)
{
if
(
self
.
tempCount
==
2
)
{
self
.
score
+=
1
;
self
.
score
+=
1
;
self
.
layout_card
.
active
=
false
;
self
.
layout_card
.
active
=
false
;
self
.
isTouch
=
false
;
// pg.event.once('layer_coin_show_coin_end', () => {
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// this.nextLayer();
// }) // 动画回调
// }) // 动画回调
...
@@ -148,6 +149,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -148,6 +149,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
targetTime
:
self
.
touchData
.
time
,
targetTime
:
self
.
touchData
.
time
,
reset
:
false
reset
:
false
})
})
pg
.
event
.
emit
(
"
layer_record_start
"
);
}
}
})
})
pg
.
event
.
emit
(
'
layer_right_show_tryagain
'
)
pg
.
event
.
emit
(
'
layer_right_show_tryagain
'
)
...
@@ -155,6 +157,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -155,6 +157,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
once
(
'
layer_right_show_good_end
'
,
()
=>
{
pg
.
event
.
once
(
'
layer_right_show_good_end
'
,
()
=>
{
this
.
score
+=
2
;
this
.
score
+=
2
;
this
.
layout_card
.
active
=
false
;
this
.
layout_card
.
active
=
false
;
self
.
isTouch
=
false
;
// pg.event.once('layer_coin_show_coin_end', () => {
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// this.nextLayer();
// }) // 动画回调
// }) // 动画回调
...
@@ -165,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -165,6 +168,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
pg
.
event
.
once
(
'
layer_right_show_excellent_end
'
,
()
=>
{
pg
.
event
.
once
(
'
layer_right_show_excellent_end
'
,
()
=>
{
this
.
score
+=
3
;
this
.
score
+=
3
;
this
.
layout_card
.
active
=
false
;
this
.
layout_card
.
active
=
false
;
self
.
isTouch
=
false
;
// pg.event.once('layer_coin_show_coin_end', () => {
// pg.event.once('layer_coin_show_coin_end', () => {
// this.nextLayer();
// this.nextLayer();
// }) // 动画回调
// }) // 动画回调
...
@@ -208,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -208,6 +212,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//开始
//开始
this
.
showQuestions
();
this
.
showQuestions
();
}
}
private
isTouch
=
false
;
private
showQuestions
()
{
private
showQuestions
()
{
let
len
=
Game
.
getIns
().
len
;
let
len
=
Game
.
getIns
().
len
;
let
count
=
len
>=
4
?
4
:
len
;
let
count
=
len
>=
4
?
4
:
len
;
...
@@ -221,6 +226,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -221,6 +226,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
intact
.
active
=
true
;
intact
.
active
=
true
;
broken
.
active
=
false
;
broken
.
active
=
false
;
egg
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
()
=>
{
egg
.
on
(
cc
.
Node
.
EventType
.
TOUCH_END
,
()
=>
{
if
(
this
.
isTouch
)
return
;
this
.
isTouch
=
true
;
this
.
stopArrowAction
();
this
.
stopArrowAction
();
this
.
hammerAction
(
egg
.
getPosition
()).
then
(
async
()
=>
{
this
.
hammerAction
(
egg
.
getPosition
()).
then
(
async
()
=>
{
let
di
=
cc
.
find
(
"
di
"
,
egg
);
let
di
=
cc
.
find
(
"
di
"
,
egg
);
...
@@ -262,6 +269,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -262,6 +269,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
data
)
{
if
(
!
data
)
{
self
.
layout_card
.
active
=
false
;
self
.
layout_card
.
active
=
false
;
self
.
isTouch
=
false
;
return
;
return
;
}
}
self
.
layout_card
.
active
=
true
;
self
.
layout_card
.
active
=
true
;
...
...
assets/hy03_zadan/script/defaultData_hy03_zadan.ts
View file @
7256b71c
...
@@ -30,6 +30,7 @@ export const defaultData = {
...
@@ -30,6 +30,7 @@ export const defaultData = {
}
}
],
],
"
npcTitle
"
:
"
hi fiddler
"
,
"
npcTitle
"
:
"
hi fiddler
"
,
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3
"
,
"
npcAudio
"
:
""
,
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/944ae51b57fb9390dd03104d9651e5f4_l.mp3",
"
npcAudioName
"
:
"
bear_2.mp3
"
"
npcAudioName
"
:
"
bear_2.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