mirror of
https://github.com/overte-org/overte.git
synced 2025-04-30 00:42:46 +02:00
update birdSongs to new injector hash format
This commit is contained in:
parent
12e15eab6a
commit
d4b74e6ecf
1 changed files with 4 additions and 4 deletions
|
@ -33,13 +33,13 @@ function maybePlaySound(deltaTime) {
|
||||||
// Set the location and other info for the sound to play
|
// Set the location and other info for the sound to play
|
||||||
var whichBird = Math.floor(Math.random() * birds.length);
|
var whichBird = Math.floor(Math.random() * birds.length);
|
||||||
//print("playing sound # " + whichBird);
|
//print("playing sound # " + whichBird);
|
||||||
var options = new AudioInjectionOptions();
|
|
||||||
var position = { x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x),
|
var position = { x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x),
|
||||||
y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y),
|
y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y),
|
||||||
z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) };
|
z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) };
|
||||||
options.position = position;
|
var options = {
|
||||||
options.volume = BIRD_MASTER_VOLUME;
|
position: position,
|
||||||
//
|
volume: BIRD_MASTER_VOLUME
|
||||||
|
};
|
||||||
var entityId = Entities.addEntity({
|
var entityId = Entities.addEntity({
|
||||||
type: "Sphere",
|
type: "Sphere",
|
||||||
position: position,
|
position: position,
|
||||||
|
|
Loading…
Reference in a new issue