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
11da389a
Commit
11da389a
authored
Jul 17, 2023
by
yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7e47d40f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
41 deletions
+124
-41
hy14_pipei.ts
assets/hy14_pipei/scene/hy14_pipei.ts
+2
-1
defaultData_hy14_pipei.ts
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
+122
-40
No files found.
assets/hy14_pipei/scene/hy14_pipei.ts
View file @
11da389a
...
@@ -146,6 +146,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
...
@@ -146,6 +146,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
let
op
=
Game
.
getIns
().
opdata
;
let
op
=
Game
.
getIns
().
opdata
;
op
.
forEach
((
dt
,
idx
)
=>
{
op
.
forEach
((
dt
,
idx
)
=>
{
let
ch
=
this
.
layout_op
.
children
[
idx
];
let
ch
=
this
.
layout_op
.
children
[
idx
];
if
(
!
ch
)
return
;
ch
.
active
=
true
;
ch
.
active
=
true
;
let
desc
=
cc
.
find
(
"
desc
"
,
ch
);
let
desc
=
cc
.
find
(
"
desc
"
,
ch
);
desc
.
getComponent
(
cc
.
Label
).
string
=
dt
.
text
;
desc
.
getComponent
(
cc
.
Label
).
string
=
dt
.
text
;
...
@@ -284,7 +285,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
...
@@ -284,7 +285,7 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
right
"
).
then
(
async
()
=>
{
this
.
playLocalAudio
(
"
right
"
).
then
(
async
()
=>
{
await
asyncDelay
(
0.
3
);
await
asyncDelay
(
0.
1
);
pg
.
audio
.
playAudioByUrl
(
data
.
audio
).
then
(
async
()
=>
{
pg
.
audio
.
playAudioByUrl
(
data
.
audio
).
then
(
async
()
=>
{
if
(
this
.
checkRoundEnd
())
{
if
(
this
.
checkRoundEnd
())
{
await
asyncDelay
(
0.5
);
await
asyncDelay
(
0.5
);
...
...
assets/hy14_pipei/script/defaultData_hy14_pipei.ts
View file @
11da389a
export
const
defaultData
=
{
export
const
defaultData
=
{
"
points
"
:
""
,
"
points
"
:
""
,
"
questionScore
"
:
0
,
"
questionScore
"
:
0
,
"
questions
"
:
[],
"
questions
"
:
[],
"
bgItem
"
:
{
"
bgItem
"
:
{
"
url
"
:
"
http://
staging-teach.cdn.ireadabc.com/bf9f3958a388f3e10e79f50ab786f5ef
.png
"
,
"
url
"
:
"
http://
teach.cdn.ireadabc.com/0c33ade57a0c9eae26e6a61dd2c165b0
.png
"
,
"
rect
"
:
{
"
rect
"
:
{
"
x
"
:
0
,
"
x
"
:
53.37
,
"
y
"
:
42.52
,
"
y
"
:
0
,
"
width
"
:
902
,
"
width
"
:
795.25
,
"
height
"
:
424.95
"
height
"
:
510
}
}
},
},
"
hotZoneItemArr
"
:
[
"
hotZoneItemArr
"
:
[
{
{
"
id
"
:
"
1689
504307224
"
,
"
id
"
:
"
1689
340832806
"
,
"
index
"
:
0
,
"
index
"
:
0
,
"
text
"
:
"
the blue and green face
"
,
"
text
"
:
"
monkey
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/5da468cbe299d7b0d3f77a59701123c5_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
...
@@ -24,23 +25,24 @@ export const defaultData = {
...
@@ -24,23 +25,24 @@ export const defaultData = {
"
mapScale
"
:
0.7046875
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
451
,
"
x
"
:
451
,
"
y
"
:
255.00000000000003
"
y
"
:
190
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
390.95
,
"
width
"
:
126.12
,
"
height
"
:
35.23
,
"
height
"
:
35.23
,
"
x
"
:
56.53
,
"
x
"
:
109.86
,
"
y
"
:
44.8
6
"
y
"
:
20.9
6
}
}
},
},
{
{
"
id
"
:
"
1689
504345672
"
,
"
id
"
:
"
1689
340855171
"
,
"
index
"
:
1
,
"
index
"
:
1
,
"
text
"
:
"
the gold face
"
,
"
text
"
:
"
rooster
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/777bb3cb89ef8cf7723b4cc9c18697b3_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
...
@@ -49,23 +51,24 @@ export const defaultData = {
...
@@ -49,23 +51,24 @@ export const defaultData = {
"
mapScale
"
:
0.7046875
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
451
,
"
x
"
:
451
,
"
y
"
:
255.00000000000003
"
y
"
:
190
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
217.1
6
,
"
width
"
:
116.8
6
,
"
height
"
:
35.23
,
"
height
"
:
35.23
,
"
x
"
:
118.4
2
,
"
x
"
:
95.0
2
,
"
y
"
:
1
93.86
"
y
"
:
1
04.85
}
}
},
},
{
{
"
id
"
:
"
1689
50436575
5
"
,
"
id
"
:
"
1689
34087796
5
"
,
"
index
"
:
2
,
"
index
"
:
2
,
"
text
"
:
"
the black face
"
,
"
text
"
:
"
dog
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/25dc3b18d7036db7a90b77486b1bba51_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
...
@@ -74,23 +77,24 @@ export const defaultData = {
...
@@ -74,23 +77,24 @@ export const defaultData = {
"
mapScale
"
:
0.7046875
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
451
,
"
x
"
:
451
,
"
y
"
:
255.00000000000003
"
y
"
:
190
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
233.29
,
"
width
"
:
62.11
,
"
height
"
:
35.23
,
"
height
"
:
35.23
,
"
x
"
:
1
16.35
,
"
x
"
:
1
04.21
,
"
y
"
:
341.86
"
y
"
:
197.11
}
}
},
},
{
{
"
id
"
:
"
1689
504375545
"
,
"
id
"
:
"
1689
340888104
"
,
"
index
"
:
3
,
"
index
"
:
3
,
"
text
"
:
"
the red face
"
,
"
text
"
:
"
pig
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/cb8d3a47041b6dd66995fb4277f14d44_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
...
@@ -99,23 +103,24 @@ export const defaultData = {
...
@@ -99,23 +103,24 @@ export const defaultData = {
"
mapScale
"
:
0.7046875
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
451
,
"
x
"
:
451
,
"
y
"
:
255.00000000000003
"
y
"
:
190
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
199.82
,
"
width
"
:
50.48
,
"
height
"
:
35.23
,
"
height
"
:
35.23
,
"
x
"
:
569.09
,
"
x
"
:
108.01
,
"
y
"
:
81.86
"
y
"
:
279.32
}
}
},
},
{
{
"
id
"
:
"
1689
504389861
"
,
"
id
"
:
"
1689
340894217
"
,
"
index
"
:
4
,
"
index
"
:
4
,
"
text
"
:
"
the white face
"
,
"
text
"
:
"
rat
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/468579a967328c9a0f37d04e4aae8169_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgScale
"
:
1
,
...
@@ -124,23 +129,100 @@ export const defaultData = {
...
@@ -124,23 +129,100 @@ export const defaultData = {
"
mapScale
"
:
0.7046875
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
dragDot
"
:
{
"
x
"
:
451
,
"
x
"
:
451
,
"
y
"
:
255.00000000000003
"
y
"
:
190
},
},
"
gIdx
"
:
"
0
"
,
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
rect
"
:
{
"
width
"
:
234.03
,
"
width
"
:
45.06
,
"
height
"
:
35.23
,
"
height
"
:
35.23
,
"
x
"
:
549.98
,
"
x
"
:
114.43
,
"
y
"
:
3
01.86
"
y
"
:
3
62.59
}
}
}
},
{
"
id
"
:
"
1689340915577
"
,
"
index
"
:
6
,
"
text
"
:
"
sheep
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/c27083d96698ba7fe7e056646c87be0e_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
97.13
,
"
height
"
:
35.23
,
"
x
"
:
583.55
,
"
y
"
:
22.27
}
},
{
"
id
"
:
"
1689340922854
"
,
"
index
"
:
7
,
"
text
"
:
"
horse
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/e88527f312200740345d23cb20c3b26e_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
90.44
,
"
height
"
:
35.23
,
"
x
"
:
612.69
,
"
y
"
:
110.22
}
},
{
"
id
"
:
"
1689340931161
"
,
"
index
"
:
8
,
"
text
"
:
"
snake
"
,
"
audio_url
"
:
"
http://teach.cdn.ireadabc.com/a4f23671190a8a847bccd0796f0537e2_l.mp3
"
,
"
itemType
"
:
"
text
"
,
"
fontScale
"
:
0.7046875
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
0.7046875
,
"
dragDot
"
:
{
"
x
"
:
451
,
"
y
"
:
190
},
"
gIdx
"
:
"
0
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
ahronbd-1
"
,
"
ontColor
"
:
"
#8f3758
"
,
"
rect
"
:
{
"
width
"
:
95.37
,
"
height
"
:
35.23
,
"
x
"
:
611.59
,
"
y
"
:
193.48
}
},
],
],
"
npcTitle
"
:
"
HY14
"
,
"
npcTitle
"
:
"
Mind Map
"
,
"
npcAudio
"
:
""
,
"
npcAudio
"
:
"
http://teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3
"
,
// "npcAudio": "http://staging-teach.cdn.ireadabc.com/840c5d814e82b8dbc869d7523d592869_l.mp3",
"
npcAudioName
"
:
"
HY14位置匹配-将单词拖动到正确的位置.mp3
"
,
"
npcAudioName
"
:
"
HY14位置匹配-将单词拖动到正确的位置.mp3
"
,
"
questionText
"
:
""
"
questionText
"
:
""
}
}
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