Commit 3d1bfd2b authored by wildfirecode's avatar wildfirecode

1

parent f83a4e52
......@@ -4942,6 +4942,11 @@
"url": "assets/common/arrowbg.png",
"type": "image",
"name": "arrowbg_png"
},
{
"url": "assets/sounds/haha.mp3",
"type": "sound",
"name": "haha_mp3"
}
]
}
\ No newline at end of file
......@@ -2159,6 +2159,7 @@ export default class MainScene extends Scene {
this.commonContinuityTimes = 1;
this.effectContinuityTimes = 1;
if (movieClips["bonusTime"]) {
playSound(SoundType.bonusTime);
this.addChild(movieClips["bonusTime"])
movieClips["bonusTime"].gotoAndPlay(1, true)
setTimeout(() => {
......
......@@ -82,6 +82,7 @@ export enum SoundType {
playBg = 'playBg',
line = 'line',
bonusShoot = 'bonusShoot',
bonusTime = 'haha',
}
export const playSound = (type: SoundType) => {
......
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