Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SSAPP2501
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
SSAPP2501
Commits
f1790ef2
Commit
f1790ef2
authored
Aug 23, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(SSAPP2501): 优化语音数据保存逻辑并调整动画参数
parent
8b4b0a51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
40 deletions
+36
-40
SSAPP2501.fire
assets/SSAPP2501/scene/SSAPP2501.fire
+35
-35
SSAPP2501.ts
assets/SSAPP2501/scene/SSAPP2501.ts
+1
-5
No files found.
assets/SSAPP2501/scene/SSAPP2501.fire
View file @
f1790ef2
...
@@ -15203,8 +15203,8 @@
...
@@ -15203,8 +15203,8 @@
0,
0,
0,
0,
1,
1,
1,
1
.5
,
1,
1
.5
,
1
1
]
]
},
},
...
@@ -15314,7 +15314,7 @@
...
@@ -15314,7 +15314,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
0,
0,
0,
-15
0,
0,
0,
0,
0,
0,
0,
...
@@ -15465,8 +15465,8 @@
...
@@ -15465,8 +15465,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -15527,8 +15527,8 @@
...
@@ -15527,8 +15527,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -15621,8 +15621,8 @@
...
@@ -15621,8 +15621,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -15683,8 +15683,8 @@
...
@@ -15683,8 +15683,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -15777,8 +15777,8 @@
...
@@ -15777,8 +15777,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -15839,8 +15839,8 @@
...
@@ -15839,8 +15839,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -15933,8 +15933,8 @@
...
@@ -15933,8 +15933,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -15995,8 +15995,8 @@
...
@@ -15995,8 +15995,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -16089,8 +16089,8 @@
...
@@ -16089,8 +16089,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -16151,8 +16151,8 @@
...
@@ -16151,8 +16151,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -16245,8 +16245,8 @@
...
@@ -16245,8 +16245,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -16307,8 +16307,8 @@
...
@@ -16307,8 +16307,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -16401,8 +16401,8 @@
...
@@ -16401,8 +16401,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -16463,8 +16463,8 @@
...
@@ -16463,8 +16463,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
@@ -16557,8 +16557,8 @@
...
@@ -16557,8 +16557,8 @@
0,
0,
0,
0,
1,
1,
0.5
,
1
,
0.5
,
1
,
1
1
]
]
},
},
...
@@ -16619,8 +16619,8 @@
...
@@ -16619,8 +16619,8 @@
0,
0,
-0.7071067811865475,
-0.7071067811865475,
0.7071067811865476,
0.7071067811865476,
0.
5
,
0.
8
,
0.
5
,
0.
8
,
1
1
]
]
},
},
...
...
assets/SSAPP2501/scene/SSAPP2501.ts
View file @
f1790ef2
...
@@ -1152,6 +1152,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1152,6 +1152,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
isSuccess
=
this
.
checkWords
(
data
);
let
isSuccess
=
this
.
checkWords
(
data
);
this
.
log
(
"
data:
"
+
JSON
.
stringify
(
data
));
this
.
log
(
"
data:
"
+
JSON
.
stringify
(
data
));
Game
.
getIns
().
player
.
addVoice
(
data
);
// 根据评分和单词正确性显示不同的提示
// 根据评分和单词正确性显示不同的提示
if
(
isSuccess
)
{
if
(
isSuccess
)
{
this
.
recordTouching
=
false
;
this
.
recordTouching
=
false
;
...
@@ -1161,20 +1162,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1161,20 +1162,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 80分及以上,显示优秀提示(3星)
// 80分及以上,显示优秀提示(3星)
this
.
updateTips
(
TIPS_STATE
.
EXCELLENT
);
this
.
updateTips
(
TIPS_STATE
.
EXCELLENT
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
// 保存录音数据
Game
.
getIns
().
player
.
addVoice
(
data
);
}
else
if
(
score
>=
60
)
{
}
else
if
(
score
>=
60
)
{
// 60-80分,显示不错提示(2星)
// 60-80分,显示不错提示(2星)
this
.
updateTips
(
TIPS_STATE
.
NICE
);
this
.
updateTips
(
TIPS_STATE
.
NICE
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
// 保存录音数据
// 保存录音数据
Game
.
getIns
().
player
.
addVoice
(
data
);
}
else
if
(
score
>=
10
)
{
}
else
if
(
score
>=
10
)
{
// 10-60分,显示加油提示(1星)
// 10-60分,显示加油提示(1星)
this
.
updateTips
(
TIPS_STATE
.
COMEON
);
this
.
updateTips
(
TIPS_STATE
.
COMEON
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
pg
.
hw
.
playLocalAudio
(
'
score_success
'
);
// 保存录音数据
// 保存录音数据
Game
.
getIns
().
player
.
addVoice
(
data
);
}
else
{
}
else
{
// 10分以下,显示再试一次提示(0星)
// 10分以下,显示再试一次提示(0星)
this
.
updateTips
(
TIPS_STATE
.
TRYAGAIN
);
this
.
updateTips
(
TIPS_STATE
.
TRYAGAIN
);
...
@@ -1204,7 +1201,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1204,7 +1201,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
touchData
&&
this
.
touchData
.
parent
&&
!
this
.
activeFireNodes
.
includes
(
this
.
touchData
.
parent
))
{
if
(
this
.
touchData
&&
this
.
touchData
.
parent
&&
!
this
.
activeFireNodes
.
includes
(
this
.
touchData
.
parent
))
{
this
.
activeFireNodes
.
push
(
this
.
touchData
.
parent
);
this
.
activeFireNodes
.
push
(
this
.
touchData
.
parent
);
}
}
Game
.
getIns
().
player
.
addVoice
(
data
);
}
}
// 延迟后隐藏提示
// 延迟后隐藏提示
...
...
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