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
db60e65e
Commit
db60e65e
authored
Aug 21, 2025
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成撒花
parent
27cd4d2f
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1515 additions
and
83 deletions
+1515
-83
SSAPP2501.fire
assets/SSAPP2501/scene/SSAPP2501.fire
+1363
-19
SSAPP2501.ts
assets/SSAPP2501/scene/SSAPP2501.ts
+5
-1
defaultData.ts
assets/SSAPP2501/script/defaultData.ts
+63
-63
common.meta
assets/SSAPP2501/textures/common.meta
+12
-0
btn_restart.png
assets/SSAPP2501/textures/common/btn_restart.png
+0
-0
btn_restart.png.meta
assets/SSAPP2501/textures/common/btn_restart.png.meta
+36
-0
cd.png
assets/SSAPP2501/textures/common/cd.png
+0
-0
cd.png.meta
assets/SSAPP2501/textures/common/cd.png.meta
+36
-0
No files found.
assets/SSAPP2501/scene/SSAPP2501.fire
View file @
db60e65e
This diff is collapsed.
Click to expand it.
assets/SSAPP2501/scene/SSAPP2501.ts
View file @
db60e65e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
*/
*/
// 导入工具函数
// 导入工具函数
import
{
asyncDelay
,
onHomeworkFinish
,
RandomInt
}
from
"
../script/util
"
;
import
{
asyncDelay
,
onHomeworkFinish
,
RandomInt
,
showTrebleFirework
}
from
"
../script/util
"
;
// 导入基础场景组件
// 导入基础场景组件
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
import
{
MyCocosSceneComponent
}
from
"
../script/MyCocosSceneComponent
"
;
// 导入游戏管理类和相关枚举
// 导入游戏管理类和相关枚举
...
@@ -1229,6 +1229,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1229,6 +1229,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 设置游戏状态为结束
// 设置游戏状态为结束
Game
.
getIns
().
state
=
GAME_STATE
.
OVER
;
Game
.
getIns
().
state
=
GAME_STATE
.
OVER
;
showTrebleFirework
(
cc
.
find
(
'
Canvas/ani
'
),
cc
.
find
(
'
Canvas/RabbonBase
'
).
children
);
// 准备提交的数据
// 准备提交的数据
let
data
:
any
=
{};
let
data
:
any
=
{};
data
.
total
=
Game
.
getIns
().
getTotal
;
// 总题目数
data
.
total
=
Game
.
getIns
().
getTotal
;
// 总题目数
...
@@ -1241,6 +1243,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1241,6 +1243,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 提交作业完成数据
// 提交作业完成数据
onHomeworkFinish
(
data
)
onHomeworkFinish
(
data
)
// 显示重新开始
}
}
/**
/**
...
...
assets/SSAPP2501/script/defaultData.ts
View file @
db60e65e
...
@@ -33,69 +33,69 @@ export const defaultData = {
...
@@ -33,69 +33,69 @@ export const defaultData = {
"
time
"
:
null
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
duration
"
:
""
,
"
audioName
"
:
"
egg.mp3
"
"
audioName
"
:
"
egg.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/8d6a8d7764011afb0ef537d5a44d1d10_l.mp3
"
,
"
text
"
:
"
key
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/ab9962445d23c0df3a021ae3996412bc.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
key.mp3
"
},
{
"
type
"
:
"
img
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/e634280a803a6c9d0b0b51b41f017254_l.mp3
"
,
"
text
"
:
"
lion
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/26a3965f155e85980be316c077a93004.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
lion.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/fd8a2b8eeb4abbe7683d30e728ece184_l.mp3
"
,
"
text
"
:
"
orange
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/42aa310d755512eec187d9df73de0fd3.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
orange.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/c08af4f22c71ad8b3d8786a837787ac9_l.mp3
"
,
"
text
"
:
"
hat
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/9621563afaae7ac0ed01e431a11fa961.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
hat.mp3
"
},
{
"
type
"
:
"
txt
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/f4e0925dec2f24505872b1c367343a6e_l.mp3
"
,
"
text
"
:
"
noodles
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/0e2058294ed4fed73a48eb4a8bfd3d37.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
noodles.mp3
"
},
{
"
type
"
:
"
img
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/ce3337620f22232dd15c29c66af57736_l.mp3
"
,
"
text
"
:
"
monkey
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/340eb5c942ddfbf3fbebace4d14d4472.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
monkey.mp3
"
},
{
"
type
"
:
"
img
"
,
"
audio
"
:
"
https://staging-teach.cdn.ireadabc.com/48f94d8e04450d52c3a53554d193e92a_l.mp3
"
,
"
text
"
:
"
yogurt
"
,
"
image
"
:
"
https://staging-teach.cdn.ireadabc.com/42fdd3511537ee5bb55612f29f4667e2.png
"
,
"
time
"
:
null
,
"
duration
"
:
""
,
"
audioName
"
:
"
yogurt.mp3
"
}
}
// {
// "type": "txt",
// "audio": "https://staging-teach.cdn.ireadabc.com/8d6a8d7764011afb0ef537d5a44d1d10_l.mp3",
// "text": "key",
// "image": "https://staging-teach.cdn.ireadabc.com/ab9962445d23c0df3a021ae3996412bc.png",
// "time": null,
// "duration": "",
// "audioName": "key.mp3"
// },
// {
// "type": "img",
// "audio": "https://staging-teach.cdn.ireadabc.com/e634280a803a6c9d0b0b51b41f017254_l.mp3",
// "text": "lion",
// "image": "https://staging-teach.cdn.ireadabc.com/26a3965f155e85980be316c077a93004.png",
// "time": null,
// "duration": "",
// "audioName": "lion.mp3"
// },
// {
// "type": "txt",
// "audio": "https://staging-teach.cdn.ireadabc.com/fd8a2b8eeb4abbe7683d30e728ece184_l.mp3",
// "text": "orange",
// "image": "https://staging-teach.cdn.ireadabc.com/42aa310d755512eec187d9df73de0fd3.png",
// "time": null,
// "duration": "",
// "audioName": "orange.mp3"
// },
// {
// "type": "txt",
// "audio": "https://staging-teach.cdn.ireadabc.com/c08af4f22c71ad8b3d8786a837787ac9_l.mp3",
// "text": "hat",
// "image": "https://staging-teach.cdn.ireadabc.com/9621563afaae7ac0ed01e431a11fa961.png",
// "time": null,
// "duration": "",
// "audioName": "hat.mp3"
// },
// {
// "type": "txt",
// "audio": "https://staging-teach.cdn.ireadabc.com/f4e0925dec2f24505872b1c367343a6e_l.mp3",
// "text": "noodles",
// "image": "https://staging-teach.cdn.ireadabc.com/0e2058294ed4fed73a48eb4a8bfd3d37.png",
// "time": null,
// "duration": "",
// "audioName": "noodles.mp3"
// },
// {
// "type": "img",
// "audio": "https://staging-teach.cdn.ireadabc.com/ce3337620f22232dd15c29c66af57736_l.mp3",
// "text": "monkey",
// "image": "https://staging-teach.cdn.ireadabc.com/340eb5c942ddfbf3fbebace4d14d4472.png",
// "time": null,
// "duration": "",
// "audioName": "monkey.mp3"
// },
// {
// "type": "img",
// "audio": "https://staging-teach.cdn.ireadabc.com/48f94d8e04450d52c3a53554d193e92a_l.mp3",
// "text": "yogurt",
// "image": "https://staging-teach.cdn.ireadabc.com/42fdd3511537ee5bb55612f29f4667e2.png",
// "time": null,
// "duration": "",
// "audioName": "yogurt.mp3"
// }
]
]
}
}
\ No newline at end of file
assets/SSAPP2501/textures/common.meta
0 → 100644
View file @
db60e65e
{
"ver": "1.1.2",
"uuid": "8b9263a1-507b-4513-a9ea-67b69bbba014",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
assets/SSAPP2501/textures/common/btn_restart.png
0 → 100644
View file @
db60e65e
55 KB
assets/SSAPP2501/textures/common/btn_restart.png.meta
0 → 100644
View file @
db60e65e
{
"ver": "2.3.5",
"uuid": "2984828f-4c2b-4ba9-9656-0f3b7bc71db9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 407,
"height": 179,
"platformSettings": {},
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "d7580966-b781-4363-99e0-617bb3bfdd48",
"rawTextureUuid": "2984828f-4c2b-4ba9-9656-0f3b7bc71db9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 407,
"height": 179,
"rawWidth": 407,
"rawHeight": 179,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/SSAPP2501/textures/common/cd.png
0 → 100644
View file @
db60e65e
1.29 KB
assets/SSAPP2501/textures/common/cd.png.meta
0 → 100644
View file @
db60e65e
{
"ver": "2.3.5",
"uuid": "c6c3a776-728e-4eb2-8e07-a949381530bb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 55,
"height": 76,
"platformSettings": {},
"subMetas": {
"cd": {
"ver": "1.0.4",
"uuid": "91a5c684-5c06-4886-9fd2-24f7acddfb75",
"rawTextureUuid": "c6c3a776-728e-4eb2-8e07-a949381530bb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 55,
"height": 76,
"rawWidth": 55,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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