pausing until sound is done in mood

This commit is contained in:
Peli de Halleux
2018-01-16 16:44:32 -08:00
parent 2eda2061cf
commit f057964a50
3 changed files with 5 additions and 5 deletions

View File

@ -23,8 +23,7 @@ namespace brick {
show() {
brick.setLight(this.light);
brick.showImage(this.image);
if (this.sound)
music.playSoundEffect(this.sound);
music.playSoundEffectUntilDone(this.sound);
}
}

View File

@ -9,6 +9,7 @@
],
"public": true,
"dependencies": {
"core": "file:../core"
"core": "file:../core",
"music": "file:../music"
}
}