Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
00418b87
Commit
00418b87
authored
Dec 28, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
245ca3ed
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
295 additions
and
51 deletions
+295
-51
.DS_Store
.DS_Store
+0
-0
OP_18.meta
assets/OP_18.meta
+15
-1
help.mp3
assets/OP_18/audios/help.mp3
+0
-0
help.mp3.meta
assets/OP_18/audios/help.mp3.meta
+7
-0
OP_18.fire
assets/OP_18/scene/OP_18.fire
+134
-50
OP_18.js
assets/OP_18/scene/OP_18.js
+139
-0
No files found.
.DS_Store
View file @
00418b87
No preview for this file type
assets/OP_18.meta
View file @
00418b87
{"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP_18/audios/help.mp3
0 → 100644
View file @
00418b87
File added
assets/OP_18/audios/help.mp3.meta
0 → 100644
View file @
00418b87
{
"ver": "2.0.1",
"uuid": "a00abcb0-6bb9-4a35-a8f5-2a413615dc65",
"downloadMode": 0,
"duration": 4.656,
"subMetas": {}
}
\ No newline at end of file
assets/OP_18/scene/OP_18.fire
View file @
00418b87
...
...
@@ -81,13 +81,13 @@
"_active": true,
"_components": [
{
"__id__": 8
5
"__id__": 8
7
},
{
"__id__": 8
6
"__id__": 8
8
},
{
"__id__": 8
7
"__id__": 8
9
}
],
"_prefab": null,
...
...
@@ -736,7 +736,7 @@
"__id__": 49
},
{
"__id__": 7
2
"__id__": 7
4
}
],
"_active": false,
...
...
@@ -2403,6 +2403,9 @@
},
{
"__id__": 70
},
{
"__id__": 72
}
],
"_active": true,
...
...
@@ -2457,7 +2460,7 @@
},
{
"__type__": "cc.Node",
"_name": "
btn
",
"_name": "
help
",
"_objFlags": 0,
"_parent": {
"__id__": 49
...
...
@@ -2515,7 +2518,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
07Oj2zdW5BgrPNg4ikmnNq
"
"_id": "
58fTNjxthOBJou0KZe+Vv4
"
},
{
"__type__": "cc.AudioSource",
...
...
@@ -2525,6 +2528,87 @@
"__id__": 50
},
"_enabled": true,
"_clip": {
"__uuid__": "a00abcb0-6bb9-4a35-a8f5-2a413615dc65"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "8dBu1MPTpJxabehBiz5Oef"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 49
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "07Oj2zdW5BgrPNg4ikmnNq"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
},
"_enabled": true,
"_clip": {
"__uuid__": "f0680ae0-c079-45ef-abd7-9e63d90b982b"
},
...
...
@@ -2547,7 +2631,7 @@
"_active": true,
"_components": [
{
"__id__": 5
3
"__id__": 5
5
}
],
"_prefab": null,
...
...
@@ -2603,7 +2687,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
2
"__id__": 5
4
},
"_enabled": true,
"_clip": {
...
...
@@ -2628,7 +2712,7 @@
"_active": true,
"_components": [
{
"__id__": 5
5
"__id__": 5
7
}
],
"_prefab": null,
...
...
@@ -2684,7 +2768,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
4
"__id__": 5
6
},
"_enabled": true,
"_clip": null,
...
...
@@ -2707,7 +2791,7 @@
"_active": true,
"_components": [
{
"__id__": 5
7
"__id__": 5
9
}
],
"_prefab": null,
...
...
@@ -2763,7 +2847,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
6
"__id__": 5
8
},
"_enabled": true,
"_clip": null,
...
...
@@ -2786,7 +2870,7 @@
"_active": true,
"_components": [
{
"__id__":
59
"__id__":
61
}
],
"_prefab": null,
...
...
@@ -2842,7 +2926,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
58
"__id__":
60
},
"_enabled": true,
"_clip": null,
...
...
@@ -2865,7 +2949,7 @@
"_active": true,
"_components": [
{
"__id__": 6
1
"__id__": 6
3
}
],
"_prefab": null,
...
...
@@ -2921,7 +3005,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
0
"__id__": 6
2
},
"_enabled": true,
"_clip": {
...
...
@@ -2946,7 +3030,7 @@
"_active": true,
"_components": [
{
"__id__": 6
3
"__id__": 6
5
}
],
"_prefab": null,
...
...
@@ -3002,7 +3086,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
2
"__id__": 6
4
},
"_enabled": true,
"_clip": {
...
...
@@ -3027,7 +3111,7 @@
"_active": true,
"_components": [
{
"__id__": 6
5
"__id__": 6
7
}
],
"_prefab": null,
...
...
@@ -3083,7 +3167,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
4
"__id__": 6
6
},
"_enabled": true,
"_clip": {
...
...
@@ -3108,7 +3192,7 @@
"_active": true,
"_components": [
{
"__id__": 6
7
"__id__": 6
9
}
],
"_prefab": null,
...
...
@@ -3164,7 +3248,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
6
"__id__": 6
8
},
"_enabled": true,
"_clip": {
...
...
@@ -3189,7 +3273,7 @@
"_active": true,
"_components": [
{
"__id__":
69
"__id__":
71
}
],
"_prefab": null,
...
...
@@ -3245,7 +3329,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
68
"__id__":
70
},
"_enabled": true,
"_clip": {
...
...
@@ -3270,7 +3354,7 @@
"_active": true,
"_components": [
{
"__id__": 7
1
"__id__": 7
3
}
],
"_prefab": null,
...
...
@@ -3326,7 +3410,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
2
},
"_enabled": true,
"_clip": {
...
...
@@ -3349,16 +3433,16 @@
},
"_children": [
{
"__id__": 7
3
"__id__": 7
5
},
{
"__id__": 7
6
"__id__": 7
8
},
{
"__id__":
79
"__id__":
81
},
{
"__id__": 8
2
"__id__": 8
4
}
],
"_active": true,
...
...
@@ -3416,16 +3500,16 @@
"_name": "a",
"_objFlags": 0,
"_parent": {
"__id__": 7
2
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
4
"__id__": 7
6
},
{
"__id__": 7
5
"__id__": 7
7
}
],
"_prefab": null,
...
...
@@ -3481,7 +3565,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3513,7 +3597,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
3
"__id__": 7
5
},
"_enabled": true,
"_defaultClip": {
...
...
@@ -3532,16 +3616,16 @@
"_name": "a_0",
"_objFlags": 0,
"_parent": {
"__id__": 7
2
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
7
"__id__": 7
9
},
{
"__id__":
78
"__id__":
80
}
],
"_prefab": null,
...
...
@@ -3597,7 +3681,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
6
"__id__": 7
8
},
"_enabled": true,
"_materials": [
...
...
@@ -3629,7 +3713,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
6
"__id__": 7
8
},
"_enabled": true,
"_defaultClip": null,
...
...
@@ -3646,16 +3730,16 @@
"_name": "A",
"_objFlags": 0,
"_parent": {
"__id__": 7
2
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
0
"__id__": 8
2
},
{
"__id__": 8
1
"__id__": 8
3
}
],
"_prefab": null,
...
...
@@ -3711,7 +3795,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
79
"__id__":
81
},
"_enabled": true,
"_materials": [
...
...
@@ -3743,7 +3827,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
79
"__id__":
81
},
"_enabled": true,
"_defaultClip": {
...
...
@@ -3762,16 +3846,16 @@
"_name": "A_0",
"_objFlags": 0,
"_parent": {
"__id__": 7
2
"__id__": 7
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
3
"__id__": 8
5
},
{
"__id__": 8
4
"__id__": 8
6
}
],
"_prefab": null,
...
...
@@ -3827,7 +3911,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
2
"__id__": 8
4
},
"_enabled": true,
"_materials": [
...
...
@@ -3859,7 +3943,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
2
"__id__": 8
4
},
"_enabled": true,
"_defaultClip": null,
...
...
assets/OP_18/scene/OP_18.js
View file @
00418b87
...
...
@@ -482,6 +482,139 @@ cc.Class({
this
.
audioDefault
=
getAudioByResName
(
'
default
'
);
this
.
helpClip
=
getAudioByResName
(
'
help
'
).
clip
;
},
resetHelperTime
()
{
this
.
helperTime
=
new
Date
().
getTime
();
},
showHelper
()
{
console
.
log
(
"
in showHelper
"
);
playAudio
(
this
.
helpClip
,
()
=>
{
this
.
showHelperWrite
();
})
},
showHelperSign
()
{
for
(
let
i
=
0
;
i
<
this
.
signAnimaNodeArr
.
length
;
i
++
)
{
const
animaNode
=
this
.
signAnimaNodeArr
[
i
];
if
(
!
animaNode
.
isShowEnd
)
{
this
.
showSign
(
animaNode
);
break
;
}
}
},
showHelperCircle
()
{
for
(
let
i
=
0
;
i
<
this
.
circleAnimaNodeArr
.
length
;
i
++
)
{
const
animaNode
=
this
.
circleAnimaNodeArr
[
i
];
if
(
!
animaNode
.
isShowEnd
)
{
this
.
showCircle
(
animaNode
);
break
;
}
}
},
showHelperWrite
()
{
for
(
let
i
=
0
;
i
<
this
.
writeNodeArr1
.
length
;
i
++
)
{
const
animNode
=
this
.
writeNodeArr1
[
i
];
if
(
!
animNode
.
isShowEnd
)
{
this
.
showLetter
(
i
,
null
,
false
)
return
;
}
}
for
(
let
i
=
0
;
i
<
this
.
writeNodeArr2
.
length
;
i
++
)
{
const
animNode
=
this
.
writeNodeArr2
[
i
];
if
(
!
animNode
.
isShowEnd
)
{
this
.
showLetter
(
i
,
null
,
true
)
return
;
}
}
},
showHelperLink
()
{
console
.
log
(
'
in showHelperLink..
'
);
let
item
;
for
(
let
i
=
0
;
i
<
this
.
linkRectGroup
.
length
;
i
++
)
{
const
{
hzItemId
}
=
this
.
linkRectGroup
[
i
].
linkData
;
const
rectNode
=
this
.
getItemById
(
hzItemId
);
if
(
!
rectNode
.
isShowEnd
&&
this
.
linkRectGroup
[
i
].
isRightPoint
)
{
item
=
this
.
linkRectGroup
[
i
];
break
;
}
}
if
(
item
)
{
const
{
hzItemId
,
linkHzItemId
}
=
item
.
linkData
this
.
showSuccess
(
hzItemId
,
linkHzItemId
);
}
},
startHelper
()
{
this
.
resetHelperTime
();
this
.
isHelpCountDown
=
true
;
const
checkTime
=
()
=>
{
if
(
!
this
.
isHelpCountDown
)
{
return
;
}
const
curTime
=
new
Date
().
getTime
();
if
(
curTime
-
this
.
helperTime
>
15
*
1000
)
{
this
.
showHelper
();
this
.
resetHelperTime
();
}
delayCall
(
0.05
,
()
=>
{
checkTime
();
})
}
checkTime
();
},
stopHelper
()
{
this
.
isHelpCountDown
=
false
;
},
...
...
@@ -494,6 +627,9 @@ cc.Class({
return
;
}
this
.
startHelper
();
// // setInterval(() => {
// this.getPhotoData((data) => {
// this.photoEnd(data);
...
...
@@ -536,6 +672,9 @@ cc.Class({
//结束检测
endTesting
()
{
this
.
stopHelper
();
const
cw
=
window
.
courseware
;
if
(
!
cw
||
!
cw
.
closeOsmoHandwriting
)
{
...
...
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