Commit db60e65e authored by Tt's avatar Tt

完成撒花

parent 27cd4d2f
This diff is collapsed.
...@@ -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)
// 显示重新开始
} }
/** /**
......
...@@ -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
{
"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
{
"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
{
"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
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