Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy04_pinci
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
hy04_pinci
Commits
19b71151
Commit
19b71151
authored
Jul 17, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据判断
parent
448f0749
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
9 deletions
+35
-9
hy04_pinci.ts
assets/hy04_pinci/scene/hy04_pinci.ts
+1
-0
defaultData_hy04_pinci.ts
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
+34
-9
No files found.
assets/hy04_pinci/scene/hy04_pinci.ts
View file @
19b71151
...
...
@@ -262,6 +262,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
if
(
allWord
.
length
>
8
)
{
scale
=
1
-
(
allWord
.
length
-
8
)
*
0.1
;
scale
=
Math
.
max
(
scale
,
0.5
);
}
return
scale
;
}
...
...
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
View file @
19b71151
...
...
@@ -14,42 +14,67 @@ export const defaultData =
"
audio
"
:
""
,
"
text
"
:
""
,
"
right
"
:
false
,
//magical golden stick
"
letterList
"
:
[
{
"
text
"
:
"
Y
"
"
text
"
:
"
m
"
},
{
"
text
"
:
"
e
"
"
text
"
:
"
a
"
},
{
"
text
"
:
"
l
"
"
text
"
:
"
g
"
},
{
"
text
"
:
"
i
"
},
{
"
text
"
:
"
c
"
},
{
"
text
"
:
"
a
"
},
{
"
text
"
:
"
l
"
},
{
"
text
"
:
"
"
},
{
"
text
"
:
"
g
"
},
{
"
text
"
:
"
o
"
},
{
"
text
"
:
"
w
"
"
text
"
:
"
l
"
},
{
"
text
"
:
"
d
"
},
{
"
text
"
:
"
e
"
},
{
"
text
"
:
"
n
"
},
{
"
text
"
:
"
"
},
{
"
text
"
:
"
R
"
"
text
"
:
"
s
"
},
{
"
text
"
:
"
i
"
"
text
"
:
"
t
"
},
{
"
text
"
:
"
v
"
"
text
"
:
"
i
"
},
{
"
text
"
:
"
e
"
"
text
"
:
"
c
"
},
{
"
text
"
:
"
r
"
"
text
"
:
"
k
"
}
]
},
...
...
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