Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy14_pipei
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
hy14_pipei
Commits
685c53aa
Commit
685c53aa
authored
Jul 15, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2d52c6ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
88 deletions
+70
-88
hy14_pipei.ts
assets/hy14_pipei/scene/hy14_pipei.ts
+6
-1
defaultData_hy14_pipei.ts
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
+64
-87
No files found.
assets/hy14_pipei/scene/hy14_pipei.ts
View file @
685c53aa
...
@@ -56,7 +56,12 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
...
@@ -56,7 +56,12 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this
.
replay
();
this
.
replay
();
})
})
pg
.
event
.
on
(
'
layer_coin_show_coin_end
'
,
()
=>
{
pg
.
event
.
on
(
'
layer_coin_show_coin_end
'
,
()
=>
{
pg
.
event
.
emit
(
'
layer_ending_show
'
,
{
coin
:
3
})
// pg.event.emit('layer_ending_show', { coin: 3 })
const
midd
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
midd
)
return
this
.
log
(
"
no middleLayer
"
);
let
middleLayer
=
midd
.
getComponent
(
'
middleLayer
'
);
middleLayer
.
saveGolds
(
3
);
// 保存金币数量;num 是获得金币的数量,数字类型;
middleLayer
.
goNextPage
();
// 跳转到下一页
})
})
pg
.
event
.
on
(
"
gameOver
"
,
()
=>
{
this
.
gameOver
()
})
pg
.
event
.
on
(
"
gameOver
"
,
()
=>
{
this
.
gameOver
()
})
...
...
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
View file @
685c53aa
export
const
defaultData
=
{
export
const
defaultData
=
{
"
points
"
:
""
,
"
points
"
:
""
,
"
questionScore
"
:
0
,
"
questionScore
"
:
0
,
"
questions
"
:
[{
"
questions
"
:
[],
"
options
"
:
[{
"
type
"
:
"
img
"
,
"
image
"
:
""
,
"
audio
"
:
""
,
"
text
"
:
""
,
"
time
"
:
""
,
"
right
"
:
false
},
{
"
type
"
:
"
img
"
,
"
image
"
:
""
,
"
audio
"
:
""
,
"
text
"
:
""
,
"
time
"
:
""
,
"
right
"
:
false
},
{
"
type
"
:
"
img
"
,
"
image
"
:
""
,
"
audio
"
:
""
,
"
text
"
:
""
,
"
time
"
:
""
,
"
right
"
:
false
}
],
"
type
"
:
"
img
"
}
],
"
bgItem
"
:
{
"
bgItem
"
:
{
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/933163fae966edff0633a0bb97e5c5bc.jpg
"
,
"
url
"
:
"
http://staging-teach.cdn.ireadabc.com/933163fae966edff0633a0bb97e5c5bc.jpg
"
,
"
rect
"
:
{
"
rect
"
:
{
"
x
"
:
0
,
"
x
"
:
0
,
"
y
"
:
110.63
,
"
y
"
:
85.66
,
"
width
"
:
904
,
"
width
"
:
902
,
"
height
"
:
470.73
"
height
"
:
469.69
}
}
},
},
"
hotZoneItemArr
"
:
[{
"
hotZoneItemArr
"
:
[
"
id
"
:
"
1687246796178
"
,
{
"
id
"
:
"
1687750651003
"
,
"
index
"
:
0
,
"
index
"
:
0
,
"
text
"
:
"
low
collar
"
,
"
text
"
:
"
high
collar
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
7934cdcec68eabe639020bad5420d7f8
_l.mp3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
81c8ea51c42136db0fd61e78c38de7c9
_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.70
62
5
,
"
fontScale
"
:
0.70
4687
5
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.70
62
5
,
"
mapScale
"
:
0.70
4687
5
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
452
,
"
x
"
:
451
,
"
y
"
:
346
"
y
"
:
297
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
162.12
,
"
width
"
:
169.77
,
"
height
"
:
35.31
,
"
height
"
:
35.23
,
"
x
"
:
466.94
,
"
x
"
:
36.11
,
"
y
"
:
104.71
"
y
"
:
65.19
}
}
},
{
},
"
id
"
:
"
1687246797020
"
,
{
"
id
"
:
"
1687750664688
"
,
"
index
"
:
1
,
"
index
"
:
1
,
"
text
"
:
"
high
collar
"
,
"
text
"
:
"
low
collar
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
7934cdcec68eabe639020bad5420d7f8
_l.mp3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
9de7c90341afc24bcd2a311f4d554bdc
_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.70
62
5
,
"
fontScale
"
:
0.70
4687
5
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.70
62
5
,
"
mapScale
"
:
0.70
4687
5
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
452
,
"
x
"
:
451
,
"
y
"
:
346
"
y
"
:
297
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
188.31
,
"
width
"
:
156.28
,
"
height
"
:
35.31
,
"
height
"
:
35.23
,
"
x
"
:
22.85
,
"
x
"
:
467.86
,
"
y
"
:
67.71
"
y
"
:
100.19
}
}
},
{
},
"
id
"
:
"
1687246797521
"
,
{
"
id
"
:
"
1687750699335
"
,
"
index
"
:
2
,
"
index
"
:
2
,
"
text
"
:
"
long sleeve
"
,
"
text
"
:
"
long sleeve
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7
934cdcec68eabe639020bad5420d7f8
_l.mp3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/7
474d2ea3660833373b9d3dfb2ad9d07
_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.70
62
5
,
"
fontScale
"
:
0.70
4687
5
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.70
62
5
,
"
mapScale
"
:
0.70
4687
5
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
452
,
"
x
"
:
451
,
"
y
"
:
346
"
y
"
:
297
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
190.79
,
"
width
"
:
182.88
,
"
height
"
:
35.31
,
"
height
"
:
35.23
,
"
x
"
:
24.
6
,
"
x
"
:
13.5
6
,
"
y
"
:
197.71
"
y
"
:
193.19
}
}
},
{
},
"
id
"
:
"
1687246798099
"
,
{
"
id
"
:
"
1687750716437
"
,
"
index
"
:
3
,
"
index
"
:
3
,
"
text
"
:
"
short sleeve
"
,
"
text
"
:
"
short sleeve
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
7934cdcec68eabe639020bad5420d7f8
_l.mp3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/
172fad3743476ac9c668eb8a82d5eca1
_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.70
62
5
,
"
fontScale
"
:
0.70
4687
5
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.70
62
5
,
"
mapScale
"
:
0.70
4687
5
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
452
,
"
x
"
:
451
,
"
y
"
:
346
"
y
"
:
297
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
202.88
,
"
width
"
:
196.83
,
"
height
"
:
35.31
,
"
height
"
:
35.23
,
"
x
"
:
446.56
,
"
x
"
:
462.59
,
"
y
"
:
190.71
"
y
"
:
186.19
}
}
}
}
],
],
"
questionText
"
:
""
,
"
questionText
"
:
""
,
"
npcTitle
"
:
"
may
"
,
"
npcTitle
"
:
"
Mind Map
"
,
"
npcAudio
"
:
""
,
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3
"
,
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/36067f9e2415d59fa37c3795a3929087_l.mp3",
"
npcAudioName
"
:
"
HY14位置匹配-将单词拖动到正确的位置.mp3
"
"
npcAudioName
"
:
"
bear_3.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