Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
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
dg18_tianci
Commits
a8cb6846
Commit
a8cb6846
authored
Jan 09, 2024
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按文字内容匹配
parent
02517c6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+1
-1
defaultData_dg18_tianci.ts
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
+15
-1
No files found.
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
a8cb6846
...
...
@@ -287,7 +287,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
targetData
)
{
this
.
onMeetFail
(
node
);
}
else
{
if
(
node
.
data
.
index
!=
targetData
.
index
)
{
if
(
node
.
data
.
text
!=
targetData
.
text
)
{
this
.
onMeetFail
(
node
);
}
else
{
targetItem
.
active
=
false
;
...
...
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
View file @
a8cb6846
export
const
defaultData
=
{
"
npcTitle
"
:
""
,
"
npcAudio
"
:
""
,
"
npcAudioName
"
:
"
开始音频.mp3
"
,
"
npcAudioEnd
"
:
"
http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3
"
,
"
npcAudioEndName
"
:
"
结束音频.mp3
"
,
"
questions
"
:[{
"
options
"
:[],
"
hotZoneFontObj
"
:{
"
size
"
:
50
,
"
name
"
:
"
BRLNSR_1
"
,
"
color
"
:
"
#8f3758
"
},
"
bgItem
"
:{
"
url
"
:
"
http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png
"
,
"
rect
"
:{
"
x
"
:
175.26254180602007
,
"
y
"
:
2.842170943040401
e
-
14
,
"
width
"
:
742.4749163879599
,
"
height
"
:
443.99999999999994
}},
"
hotZoneItemArr
"
:[{
"
index
"
:
0
,
"
text
"
:
"
extinction
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:{
"
x
"
:
84.24
,
"
y
"
:
-
32
,
"
width
"
:
200
,
"
height
"
:
200
}},{
"
index
"
:
1
,
"
text
"
:
"
endangered
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:{
"
x
"
:
92.24
,
"
y
"
:
55
,
"
width
"
:
200
,
"
height
"
:
200
}},{
"
index
"
:
2
,
"
text
"
:
"
global warming
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:{
"
x
"
:
448.24
,
"
y
"
:
-
12
,
"
width
"
:
200
,
"
height
"
:
200
}},{
"
index
"
:
3
,
"
text
"
:
"
threaten
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:{
"
x
"
:
439.24
,
"
y
"
:
93
,
"
width
"
:
200
,
"
height
"
:
200
}}]}],
"
bgItem
"
:
""
,
"
hotZoneItemArr
"
:[]}
{
"
npcTitle
"
:
""
,
"
npcAudio
"
:
""
,
"
npcAudioName
"
:
"
开始音频.mp3
"
,
"
npcAudioEnd
"
:
"
http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3
"
,
"
npcAudioEndName
"
:
"
结束音频.mp3
"
,
"
questions
"
:
[{
"
options
"
:
[],
"
hotZoneFontObj
"
:
{
"
size
"
:
50
,
"
name
"
:
"
BRLNSR_1
"
,
"
color
"
:
"
#8f3758
"
},
"
bgItem
"
:
{
"
url
"
:
"
http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png
"
,
"
rect
"
:
{
"
x
"
:
175.26254180602007
,
"
y
"
:
2.842170943040401
e
-
14
,
"
width
"
:
742.4749163879599
,
"
height
"
:
443.99999999999994
}
},
"
hotZoneItemArr
"
:
[
{
"
index
"
:
0
,
"
text
"
:
"
extinction
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:
{
"
x
"
:
84.24
,
"
y
"
:
-
32
,
"
width
"
:
200
,
"
height
"
:
200
}
},
{
"
index
"
:
1
,
"
text
"
:
"
extinction
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:
{
"
x
"
:
92.24
,
"
y
"
:
55
,
"
width
"
:
200
,
"
height
"
:
200
}
},
{
"
index
"
:
2
,
"
text
"
:
"
global warming
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:
{
"
x
"
:
448.24
,
"
y
"
:
-
12
,
"
width
"
:
200
,
"
height
"
:
200
}
},
{
"
index
"
:
3
,
"
text
"
:
"
threaten
"
,
"
itemType
"
:
"
text
"
,
"
fontSize
"
:
50
,
"
fontName
"
:
"
BRLNSR_1
"
,
"
fontColor
"
:
"
#8f3758
"
,
"
fontScale
"
:
0.85390625
,
"
imgScale
"
:
1
,
"
mapScale
"
:
0.85390625
,
"
rect
"
:
{
"
x
"
:
439.24
,
"
y
"
:
93
,
"
width
"
:
200
,
"
height
"
:
200
}
}]
}],
"
bgItem
"
:
""
,
"
hotZoneItemArr
"
:
[]
}
let
mc
=
{
"
npcTitle
"
:
"
exit
"
,
"
npcAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3
"
,
"
npcAudioName
"
:
"
boom_dg28_drag.mp3
"
,
...
...
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