Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP15
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
OP15
Commits
b7aec30b
Commit
b7aec30b
authored
Nov 27, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'aa'
parent
de3691c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
130 deletions
+131
-130
OP15.js
play/assets/OP15/scene/OP15.js
+4
-3
defaultData.js
play/assets/OP15/script/defaultData.js
+127
-127
No files found.
play/assets/OP15/scene/OP15.js
View file @
b7aec30b
...
...
@@ -647,9 +647,7 @@ cc.Class({
console
.
log
(
'
resource perload finish
'
);
if
(
window
&&
window
[
"
air
"
]
&&
window
[
"
air
"
].
hideAirClassLoading
)
{
window
[
"
air
"
].
hideAirClassLoading
();
}
cc
.
debug
.
setDisplayStats
(
false
);
});
...
...
@@ -657,6 +655,9 @@ cc.Class({
loadEnd
()
{
if
(
window
&&
window
[
"
air
"
]
&&
window
[
"
air
"
].
hideAirClassLoading
)
{
window
[
"
air
"
].
hideAirClassLoading
();
}
this
.
initData
();
// this.initAudio();
// this.initView();
...
...
play/assets/OP15/script/defaultData.js
View file @
b7aec30b
export
const
defaultData
=
{
"
playing_audio
"
:
"
https://staging-teach.cdn.ireadabc.com/
f6d5fc748e8491320bcff0a29a78efd9
.mp3
"
,
"
playing_audio
"
:
"
https://staging-teach.cdn.ireadabc.com/
71ab414eb007042f060416301c50be5b
.mp3
"
,
"
begin_audio
"
:
"
https://staging-teach.cdn.ireadabc.com/b1e5378083adac9950839772c7b67f34.mp3
"
,
"
end_audio
"
:
"
https://staging-teach.cdn.ireadabc.com/
cfceb637e79c80ef73428cc5d711129c
.mp3
"
,
"
end_audio
"
:
"
https://staging-teach.cdn.ireadabc.com/
0ffcb92067cac989b6e90a26f19ffc1f
.mp3
"
,
"
bgItem
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/adcccbd26e2cfa259920e24df01d4b92.png
"
,
"
rect
"
:
{
"
x
"
:
505.99
,
"
x
"
:
326.06
,
"
y
"
:
0
,
"
width
"
:
400.02
,
"
height
"
:
53
1
"
width
"
:
256.88
,
"
height
"
:
34
1
}
},
"
hotZoneItemArr
"
:
[{
"
id
"
:
"
1637989476417
"
,
"
index
"
:
0
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/c5c6cd890660a3c22fde393a3770458f.json
"
,
"
name
"
:
"
小汽车_ske.json
"
...
...
@@ -33,34 +33,34 @@ export const defaultData = {
"
name
"
:
"
小汽车_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637989503084
"
,
"
index
"
:
1
,
"
pic_url
"
:
"
https://staging-teach.cdn.ireadabc.com/6c46921facf36b9f7d590faed1aac69c.png
"
,
"
itemType
"
:
"
pic
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
0.3210399032648126
,
"
imgSizeW
"
:
1246
,
"
imgSizeH
"
:
1654
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
2
"
,
"
rect
"
:
{
"
x
"
:
1
,
"
y
"
:
0
,
"
x
"
:
-
71.57
,
"
y
"
:
-
94.36
,
"
width
"
:
400.02
,
"
height
"
:
531
}
...
...
@@ -69,11 +69,11 @@ export const defaultData = {
"
index
"
:
2
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/e31c3b1914837a611d4d3bb1ceb00773.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/d2d7de9f8079f36e8354d16e4ca26476.json
"
,
"
name
"
:
"
房子_ske.json
"
...
...
@@ -87,28 +87,28 @@ export const defaultData = {
"
name
"
:
"
房子_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
13
"
,
"
posX
"
:
7
99
,
"
posY
"
:
199.4971589389092
,
"
posX
"
:
7
86.9990048260586
,
"
posY
"
:
202.4928652448877
,
"
rect
"
:
{
"
x
"
:
1
98.0
1
,
"
y
"
:
132
,
"
width
"
:
1
90
,
"
height
"
:
134.9
9
"
x
"
:
1
06.6
1
,
"
y
"
:
86.69
,
"
width
"
:
1
47.7
,
"
height
"
:
86.6
9
}
},
{
"
id
"
:
"
1637989873000
"
,
"
index
"
:
3
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/ed2ac4931a9c00ff6c4298381722676e.json
"
,
"
name
"
:
"
牛_ske.json
"
...
...
@@ -122,25 +122,25 @@ export const defaultData = {
"
name
"
:
"
牛_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637989920132
"
,
"
index
"
:
4
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/1d4b251caf0c0b8245fb17cd8445672c.json
"
,
"
name
"
:
"
农夫_ske.json
"
...
...
@@ -154,26 +154,26 @@ export const defaultData = {
"
name
"
:
"
农夫_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637989946959
"
,
"
index
"
:
5
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/bf1924c502ca1a4ac928a31e7c8aa70e.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/bd3c2cc93b1593433a58d8482972ff66.json
"
,
"
name
"
:
"
苹果_ske.json
"
...
...
@@ -187,28 +187,28 @@ export const defaultData = {
"
name
"
:
"
苹果_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
6
"
,
"
posX
"
:
577
,
"
posY
"
:
1
78.5
,
"
posX
"
:
577
.001380402564
,
"
posY
"
:
1
89.49808990808017
,
"
rect
"
:
{
"
x
"
:
2.01
,
"
y
"
:
124
,
"
width
"
:
138
,
"
height
"
:
109
"
x
"
:
1.29
,
"
y
"
:
72.57
,
"
width
"
:
88.62
,
"
height
"
:
98.25
}
},
{
"
id
"
:
"
1637990008894
"
,
"
index
"
:
6
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/4503721901880d0b6c3ad6d4261e958b.json
"
,
"
name
"
:
"
小女孩_ske.json
"
...
...
@@ -222,26 +222,26 @@ export const defaultData = {
"
name
"
:
"
小女孩_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637990039605
"
,
"
index
"
:
7
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/323feb19d153069702ffd21097f18f79.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/cd7c7a756c0f79d28f419576e3b85b0c.json
"
,
"
name
"
:
"
鸭子_ske.json
"
...
...
@@ -255,28 +255,28 @@ export const defaultData = {
"
name
"
:
"
鸭子_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
12
"
,
"
posX
"
:
75
6
,
"
posY
"
:
3
09.
5
,
"
posX
"
:
75
7.9994649602465
,
"
posY
"
:
3
49.4966881039261
5
,
"
rect
"
:
{
"
x
"
:
1
69.01
,
"
y
"
:
267
,
"
width
"
:
162
,
"
height
"
:
85
"
x
"
:
1
23.94
,
"
y
"
:
176.6
,
"
width
"
:
75.78
,
"
height
"
:
95.68
}
},
{
"
id
"
:
"
1637990077830
"
,
"
index
"
:
8
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/55951c794b414ab58cca023642819e37.json
"
,
"
name
"
:
"
母鸡_ske.json
"
...
...
@@ -290,25 +290,25 @@ export const defaultData = {
"
name
"
:
"
母鸡_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637990112530
"
,
"
index
"
:
9
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/357fef8204228afb43d0ce73746228e5.json
"
,
"
name
"
:
"
鱼_ske.json
"
...
...
@@ -322,26 +322,26 @@ export const defaultData = {
"
name
"
:
"
鱼_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637990135223
"
,
"
index
"
:
10
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/b903b174f09107517b5d6f8934b73447.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/b9fa85c227daa6539f12cab5a5058052.json
"
,
"
name
"
:
"
鸡蛋_ske.json
"
...
...
@@ -355,29 +355,29 @@ export const defaultData = {
"
name
"
:
"
鸡蛋_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
7
"
,
"
posX
"
:
6
51
,
"
posY
"
:
386.5
,
"
posX
"
:
6
48.0005885437288
,
"
posY
"
:
413.4958641427058
,
"
rect
"
:
{
"
x
"
:
99.01
,
"
y
"
:
35
2
,
"
width
"
:
92
,
"
height
"
:
69
"
x
"
:
60.37
,
"
y
"
:
224.1
2
,
"
width
"
:
61.65
,
"
height
"
:
82.83
}
},
{
"
id
"
:
"
1637990214160
"
,
"
index
"
:
11
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/2656b72aec7f6def07713fbc99309168.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/20cbf3d186a197baaed38204dd017f51.json
"
,
"
name
"
:
"
猫_ske.json
"
...
...
@@ -391,28 +391,28 @@ export const defaultData = {
"
name
"
:
"
猫_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
10
"
,
"
posX
"
:
55
4
,
"
posY
"
:
3
69.5
,
"
posX
"
:
55
2.0016265208506
,
"
posY
"
:
3
99.496046056222
,
"
rect
"
:
{
"
x
"
:
3.01
,
"
y
"
:
314
,
"
width
"
:
90
,
"
height
"
:
1
11
"
x
"
:
0.65
,
"
y
"
:
194.58
,
"
width
"
:
57.8
,
"
height
"
:
1
23.93
}
},
{
"
id
"
:
"
1637990319579
"
,
"
index
"
:
12
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/3d1d49e583d97cd5097d08102265b1c6.json
"
,
"
name
"
:
"
蚂蚁_ske.json
"
...
...
@@ -426,26 +426,26 @@ export const defaultData = {
"
name
"
:
"
蚂蚁_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
1
"
,
"
rect
"
:
{
"
x
"
:
100.01
,
"
y
"
:
1
65.5
,
"
width
"
:
200
,
"
height
"
:
200
"
x
"
:
64.22
,
"
y
"
:
1
06.28
,
"
width
"
:
128.44
,
"
height
"
:
128.44
}
},
{
"
id
"
:
"
1637990911365
"
,
"
index
"
:
13
,
"
audio_url
"
:
"
https://staging-teach.cdn.ireadabc.com/9bbf8ba2fa7f96ea5a95c27a384414a2.mp3
"
,
"
itemType
"
:
"
rect
"
,
"
fontScale
"
:
1.1031
25
,
"
fontScale
"
:
0.710156
25
,
"
imgScale
"
:
1
,
"
imgSizeW
"
:
0
,
"
imgSizeH
"
:
0
,
"
mapScale
"
:
1.1031
25
,
"
mapScale
"
:
0.710156
25
,
"
skeJsonData
"
:
{
"
url
"
:
"
https://staging-teach.cdn.ireadabc.com/d8506ebddb29c8d08b4b93376b45f5c9.json
"
,
"
name
"
:
"
鸟_ske.json
"
...
...
@@ -459,18 +459,18 @@ export const defaultData = {
"
name
"
:
"
鸟_tex.png
"
},
"
dragDot
"
:
{
"
x
"
:
706
,
"
y
"
:
265.5
"
x
"
:
454.5
,
"
y
"
:
170.92032577903686
},
"
gIdx
"
:
"
0
"
,
"
labelText
"
:
"
8
"
,
"
posX
"
:
7
57
,
"
posY
"
:
104.5
,
"
posX
"
:
7
63.9994542594516
,
"
posY
"
:
90.49888176691528
,
"
rect
"
:
{
"
x
"
:
148.01
,
"
y
"
:
8
1
,
"
width
"
:
206
,
"
height
"
:
47
"
x
"
:
99.54
,
"
y
"
:
32.1
1
,
"
width
"
:
132.29
,
"
height
"
:
52.02
}
}]
}
\ 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