Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_08_360
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_08_360
Commits
3f2cf4d8
Commit
3f2cf4d8
authored
Dec 28, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
b4cd00fe
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
297 additions
and
107 deletions
+297
-107
.DS_Store
.DS_Store
+0
-0
OP_08_360.meta
assets/OP_08_360.meta
+15
-1
help.mp3
assets/OP_08_360/audio/help.mp3
+0
-0
help.mp3.meta
assets/OP_08_360/audio/help.mp3.meta
+7
-0
OP_08_360.fire
assets/OP_08_360/scene/OP_08_360.fire
+189
-105
OP_08_360.js
assets/OP_08_360/scene/OP_08_360.js
+86
-1
OP_08_360_util.js
assets/OP_08_360/script/OP_08_360_util.js
+0
-0
OP_08_360_util.js.meta
assets/OP_08_360/script/OP_08_360_util.js.meta
+0
-0
No files found.
.DS_Store
View file @
3f2cf4d8
No preview for this file type
assets/OP_08_360.meta
View file @
3f2cf4d8
{"ver":"1.1.2","uuid":"945b7340-600d-44cd-a219-b24a0104c2a3","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": "945b7340-600d-44cd-a219-b24a0104c2a3",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
assets/OP_08_360/audio/help.mp3
0 → 100644
View file @
3f2cf4d8
File added
assets/OP_08_360/audio/help.mp3.meta
0 → 100644
View file @
3f2cf4d8
{
"ver": "2.0.1",
"uuid": "6e19a659-54cb-4a11-9765-a95fdc31a9d3",
"downloadMode": 0,
"duration": 4.656,
"subMetas": {}
}
\ No newline at end of file
assets/OP_08_360/scene/OP_08_360.fire
View file @
3f2cf4d8
This diff is collapsed.
Click to expand it.
assets/OP_08_360/scene/OP_08_360.js
View file @
3f2cf4d8
...
...
@@ -6,7 +6,7 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
// import { getSprNode } from "./util";
import
{
getSprNode
,
playAudioByUrl
,
showBtnAnima
,
getScaleRateBy2Node
,
localPosTolocalPos
,
randomSortByArr
,
loadDragonBones
,
playAudio
,
showTrebleFirework
,
getSprNodeByUrl
,
setSprNodeMaxLen
,
delayCall
,
asyncDelay
,
RandomInt
,
exchangeNodePos
,
onHomeworkFinish
}
from
"
../script/util
"
;
import
{
getSprNode
,
playAudioByUrl
,
showBtnAnima
,
getScaleRateBy2Node
,
localPosTolocalPos
,
randomSortByArr
,
loadDragonBones
,
playAudio
,
showTrebleFirework
,
getSprNodeByUrl
,
setSprNodeMaxLen
,
delayCall
,
asyncDelay
,
RandomInt
,
exchangeNodePos
,
onHomeworkFinish
}
from
"
../script/
OP_08_360_
util
"
;
cc
.
Class
({
extends
:
cc
.
Component
,
...
...
@@ -686,6 +686,7 @@ cc.Class({
finishClip
:
null
,
selectClip
:
null
,
starCountClip
:
null
,
helpClip
:
null
,
initAudioEffect
()
{
this
.
rightClip
=
cc
.
find
(
'
Canvas/res/audio/right
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
wrongClip
=
cc
.
find
(
'
Canvas/res/audio/wrong
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
...
...
@@ -694,6 +695,7 @@ cc.Class({
this
.
finishClip
=
cc
.
find
(
'
Canvas/res/audio/finish
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
selectClip
=
cc
.
find
(
'
Canvas/res/audio/select
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
starCountClip
=
cc
.
find
(
'
Canvas/res/audio/star_count
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
this
.
helpClip
=
cc
.
find
(
'
Canvas/res/audio/help
'
).
getComponent
(
cc
.
AudioSource
).
clip
;
},
...
...
@@ -801,9 +803,90 @@ cc.Class({
this
.
startTesting
();
},
resetHelperTime
()
{
this
.
helperTime
=
new
Date
().
getTime
();
},
showHelper
()
{
console
.
log
(
"
in showHelper
"
);
playAudio
(
this
.
helpClip
,
()
=>
{
this
.
showHelperWrite
();
})
},
showHelperWrite
()
{
for
(
let
i
=
0
;
i
<
this
.
animaNodeArr
.
length
;
i
++
)
{
const
animaNode
=
this
.
animaNodeArr
[
i
];
if
(
!
animaNode
.
isShowEnd
)
{
this
.
showLetter
(
animaNode
);
return
;
}
}
},
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
;
},
//调起检测
startTesting
()
{
this
.
startHelper
();
// this.ques_region = [
// 0, 0.077,
// 1, 0.077,
...
...
@@ -884,6 +967,8 @@ cc.Class({
//结束检测
endTesting
()
{
this
.
stopHelper
();
const
cw
=
window
.
courseware
;
if
(
!
cw
||
!
cw
.
closeOsmoHandwriting
)
{
...
...
assets/OP_08_360/script/util.js
→
assets/OP_08_360/script/
OP_08_360_
util.js
View file @
3f2cf4d8
File moved
assets/OP_08_360/script/util.js.meta
→
assets/OP_08_360/script/
OP_08_360_
util.js.meta
View file @
3f2cf4d8
File moved
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