summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/assets/javascripts/rectangles/engine/scenery/sound.js3
-rw-r--r--views/controls/editor/color-control.ejs2
2 files changed, 2 insertions, 3 deletions
diff --git a/public/assets/javascripts/rectangles/engine/scenery/sound.js b/public/assets/javascripts/rectangles/engine/scenery/sound.js
index 2f7f8de..776dd80 100644
--- a/public/assets/javascripts/rectangles/engine/scenery/sound.js
+++ b/public/assets/javascripts/rectangles/engine/scenery/sound.js
@@ -1,13 +1,12 @@
Scenery.sound = {}
-Scenery.sound.max_distance = 600
+Scenery.sound.max_distance = 2000
Scenery.sound.init = function(){
app.tube.on("move", Scenery.sound.move)
}
Scenery.sound.move = function(){
var vals = Scenery.map(function(scenery){
if ((scenery.type == "video" || scenery.type == "audio") && ! scenery.muted()) {
- //get distance from A to B
var distance = dist(cam.x, cam.z,
scenery.mx.x, scenery.mx.z)
var volume = 1 - (clamp( distance, 0, Scenery.sound.max_distance ) / Scenery.sound.max_distance)
diff --git a/views/controls/editor/color-control.ejs b/views/controls/editor/color-control.ejs
index bcc955d..c035e24 100644
--- a/views/controls/editor/color-control.ejs
+++ b/views/controls/editor/color-control.ejs
@@ -1,4 +1,4 @@
-<div class="vvbox colorcontrol active">
+<div class="vvbox colorcontrol">
<h4>Edit Room Colors</h4>
<div class="colors">