Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Z_05_nxuan1
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
Z_05_nxuan1
Commits
cc4a5aab
Commit
cc4a5aab
authored
Sep 08, 2020
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 点击图片发音
parent
a6346bad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
15 deletions
+21
-15
n_xuan1.fire
play/assets/tmpGame/scene/n_xuan1.fire
+11
-11
n_xuan1.js
play/assets/tmpGame/scene/n_xuan1.js
+9
-3
defaultData.js
play/assets/tmpGame/script/defaultData.js
+1
-1
No files found.
play/assets/tmpGame/scene/n_xuan1.fire
View file @
cc4a5aab
...
...
@@ -1331,7 +1331,7 @@
"__id__": 31
}
],
"_active":
fals
e,
"_active":
tru
e,
"_components": [
{
"__id__": 33
...
...
@@ -1504,7 +1504,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2
06.85
,
"width": 2
36.4
,
"height": 630
},
"_anchorPoint": {
...
...
@@ -1517,7 +1517,7 @@
"ctor": "Float64Array",
"array": [
166.227,
-1
63.96
5,
-1
51.90
5,
0,
0,
0,
...
...
@@ -1557,9 +1557,9 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "
b
",
"_N$string": "
b
",
"_fontSize":
35
0,
"_string": "
d
",
"_N$string": "
d
",
"_fontSize":
40
0,
"_lineHeight": 500,
"_enableWrapText": true,
"_N$file": {
...
...
@@ -1660,7 +1660,7 @@
"__id__": 37
}
],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
{
"__id__": 39
...
...
@@ -5215,7 +5215,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
4cKn+V8UFLVKP9tDHUzMgQ
"
"_id": "
95TzRfxGtAPqVBIKFshkGt
"
},
{
"__type__": "cc.Label",
...
...
@@ -5251,7 +5251,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
8bHa1soxFF8osf8ne4KMJ5
"
"_id": "
42JZmLHc5Ba5H5wNk+kNn1
"
},
{
"__type__": "cc.PrivateNode",
...
...
@@ -5314,7 +5314,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "
4e5WyOVXZDSrooCwVpMHml
"
"_id": "
95EExnKwRMZLqjBpCXr0KG
"
},
{
"__type__": "cc.Label",
...
...
@@ -5350,7 +5350,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "
0cAXl3pkFBvpUoGLm9CCCm
"
"_id": "
d0eezZzRhNtb1VZq22uP/y
"
},
{
"__type__": "cc.RichText",
...
...
play/assets/tmpGame/scene/n_xuan1.js
View file @
cc4a5aab
...
...
@@ -472,6 +472,11 @@ cc.Class({
letterPictureBase
.
children
.
forEach
(
node
=>
node
.
active
=
false
);
const
letterPictureNode
=
cc
.
find
(
`Canvas/LetterPicturePage/LetterPicture/bg_
${
this
.
letter
.
toLowerCase
()}
`
);
letterPictureNode
.
active
=
true
;
letterPictureNode
.
addComponent
(
cc
.
Button
);
letterPictureNode
.
on
(
'
click
'
,
()
=>
{
jelly
(
letterPictureNode
);
this
.
playEffect
(
`word
${
this
.
letter
.
toUpperCase
()}
`
);
});
const
changeToBig
=
cc
.
find
(
'
Canvas/LetterPicturePage/BtnSwitch/ChangeToBig
'
);
const
changeToSmall
=
cc
.
find
(
'
Canvas/LetterPicturePage/BtnSwitch/ChangeToSmall
'
);
...
...
@@ -524,11 +529,12 @@ cc.Class({
widgetComponent
.
bottom
=
0
;
widgetComponent
.
left
=
0
;
widgetComponent
.
right
=
0
;
widgetComponent
.
updateAlignment
();
if
(
letter
==
letter
.
toLowerCase
())
{
const
monkeyUpperNode
=
cc
.
instantiate
(
this
.
monkeyUpperNode
);
monkeyUpperNode
.
parent
=
letterNodeBase
;
monkeyUpperNode
.
y
=
-
letterNodeBase
.
height
/
2
;
monkeyUpperNode
.
y
=
-
letterNodeBase
.
height
/
letterNodeBase
.
scaleY
/
2
;
}
const
btnUpdate
=
letterNodeBase
.
getChildByName
(
'
BtnUpdate
'
);
...
...
@@ -761,7 +767,7 @@ cc.Class({
.
start
();
}
if
(
this
.
checkPointInCircle
(
this
.
sharkNode
,
pos2
,
3
0
))
{
if
(
this
.
checkPointInCircle
(
this
.
sharkNode
,
pos2
,
5
0
))
{
this
.
_status
.
currentStrokeStageIdx
++
if
(
this
.
getCurrentCheckPos
()
===
null
)
{
this
.
drawCompleteLine
(
this
.
_status
.
currentStrokeIdx
);
...
...
@@ -777,7 +783,7 @@ cc.Class({
}
const
posList
=
this
.
getPosListByStrokeIdx
(
this
.
_status
.
currentStrokeIdx
);
if
(
!
this
.
checkPointInRangeList
(
this
.
node
.
convertToNodeSpaceAR
(
location
),
posList
,
3
0
))
{
if
(
!
this
.
checkPointInRangeList
(
this
.
node
.
convertToNodeSpaceAR
(
location
),
posList
,
5
0
))
{
this
.
_status
.
currentStrokeStageIdx
=
0
;
this
.
onSharkMoveEnd
(
event
);
return
;
...
...
play/assets/tmpGame/script/defaultData.js
View file @
cc4a5aab
module
.
exports
=
{
letterList
:
[
'
A
'
,
'
j
'
,
'
B
'
,
'
C
'
,
'
D
'
,
...
...
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