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", "base": "file:../base",
"core": "file:../core", "core": "file:../core",
"music": "file:../music", "music": "file:../music",
"mood": "file:../mood",
"color-sensor": "file:../color-sensor", "color-sensor": "file:../color-sensor",
"touch-sensor": "file:../touch-sensor", "touch-sensor": "file:../touch-sensor",
"ultrasonic-sensor": "file:../ultrasonic-sensor", "ultrasonic-sensor": "file:../ultrasonic-sensor",
"gyro-sensor": "file:../gyro-sensor" "gyro-sensor": "file:../gyro-sensor",
"mood": "file:../mood"
}, },
"public": true "public": true
} }

View File

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

View File

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