From 853c0197a178189d4c232c365bf206ab5973edbc Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 11 Nov 2014 10:55:45 -0800 Subject: [PATCH] repairs to birdSongs for new hash injector format --- examples/birdSongs.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/birdSongs.js b/examples/birdSongs.js index b1ccbf8f3f..680cb025ad 100644 --- a/examples/birdSongs.js +++ b/examples/birdSongs.js @@ -33,20 +33,22 @@ function maybePlaySound(deltaTime) { // Set the location and other info for the sound to play var whichBird = Math.floor(Math.random() * birds.length); //print("playing sound # " + whichBird); - var position = { x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x), - y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y), - z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) }; + var position = { + x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x), + y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y), + z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) + }; var options = { position: position, volume: BIRD_MASTER_VOLUME }; var entityId = Entities.addEntity({ - type: "Sphere", - position: position, - dimensions: { x: BIRD_SIZE, y: BIRD_SIZE, z: BIRD_SIZE }, - color: birds[whichBird].color, - lifetime: 10 - }); + type: "Sphere", + position: position, + dimensions: { x: BIRD_SIZE, y: BIRD_SIZE, z: BIRD_SIZE }, + color: birds[whichBird].color, + lifetime: 10 + }); if (useLights) { var lightId = Entities.addEntity({