pausing until sound is done in mood
This commit is contained in:
parent
2eda2061cf
commit
f057964a50
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
],
|
],
|
||||||
"public": true,
|
"public": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core": "file:../core"
|
"core": "file:../core",
|
||||||
|
"music": "file:../music"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user