Commit 19b71151 authored by Tt's avatar Tt

修改数据判断

parent 448f0749
......@@ -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;
}
......
......@@ -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"
}
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment