Commit 3d1bfd2b authored by wildfirecode's avatar wildfirecode

1

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