Commit 73c07058 authored by 范雪寒's avatar 范雪寒

fix: 标题发音

parent 244f5e8e
...@@ -51,12 +51,12 @@ export class MyGame extends Game { ...@@ -51,12 +51,12 @@ export class MyGame extends Game {
imgUrlList.push(...this.data.carrots.map(data => [data.carrotImg, data.holeImg]).flat(Infinity)); imgUrlList.push(...this.data.carrots.map(data => [data.carrotImg, data.holeImg]).flat(Infinity));
imgUrlList.push(...this.data.targets.map(data => data.targetImg)); imgUrlList.push(...this.data.targets.map(data => data.targetImg));
imgUrlList = imgUrlList.filter((data) => data != null && data != '');
audioUrlList.push(this.data.tittle.audio);
audioUrlList.push(...this.data.carrots.map(data => data.carrotAudio)); audioUrlList.push(...this.data.carrots.map(data => data.carrotAudio));
audioUrlList.push(...this.data.targets.map(data => data.targetAudio)); audioUrlList.push(...this.data.targets.map(data => data.targetAudio));
audioUrlList = audioUrlList.filter((data) => data != null && data != '');
imgUrlList = imgUrlList.filter((data) => data != null);
audioUrlList = audioUrlList.filter((data) => data != null);
this.preLoadData(imgUrlList, audioUrlList); this.preLoadData(imgUrlList, audioUrlList);
} }
...@@ -69,13 +69,6 @@ export class MyGame extends Game { ...@@ -69,13 +69,6 @@ export class MyGame extends Game {
audioUrlList.forEach((data) => { audioUrlList.forEach((data) => {
this._parent.addUrlToAudioObj(data); this._parent.addUrlToAudioObj(data);
}); });
// for (var i = 0; i < imgUrlList.length; ++i) {
// this._parent.addUrlToImages(imgUrlList[i]);
// }
// for (var i = 0; i < audioUrlList.length; ++i) {
// this._parent.addUrlToAudioObj(audioUrlList[i]);
// }
} }
initView() { initView() {
......
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