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

@ -10,11 +10,11 @@
"base": "file:../base",
"core": "file:../core",
"music": "file:../music",
"mood": "file:../mood",
"color-sensor": "file:../color-sensor",
"touch-sensor": "file:../touch-sensor",
"ultrasonic-sensor": "file:../ultrasonic-sensor",
"gyro-sensor": "file:../gyro-sensor"
"gyro-sensor": "file:../gyro-sensor",
"mood": "file:../mood"
},
"public": true
}

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"
}
}