end of day

This commit is contained in:
James B. Pollack 2016-03-04 18:17:09 -08:00
parent 3929af7187
commit 2740391c3b
2 changed files with 19 additions and 18 deletions

View file

@ -103,7 +103,7 @@ function createBubbleSystem() {
}, },
"emitDimensions": { "emitDimensions": {
"x": -0.2, "x": -0.2,
"y": 1.2000000000000002, "y": 1.6000000000000002,
"z": 0 "z": 0
}, },
"polarStart": 0, "polarStart": 0,
@ -144,7 +144,7 @@ function createBubbleSystem() {
bubbleProperties.position = finalOffset; bubbleProperties.position = finalOffset;
bubbleSystem = Entities.addEntity(bubbleProperties); bubbleSystem = Entities.addEntity(bubbleProperties);
//createBubbleSound(finalOffset); createBubbleSound(finalOffset);
} }
@ -169,7 +169,7 @@ function getOffsetFromTankCenter(VERTICAL_OFFSET, FORWARD_OFFSET, LATERAL_OFFSET
function createBubbleSound(position) { function createBubbleSound(position) {
var audioProperties = { var audioProperties = {
volume: 0, volume: 1,
position: position, position: position,
loop: true loop: true
}; };

View file

@ -11,7 +11,7 @@
var TANK_SEARCH_RADIUS = 5; var TANK_SEARCH_RADIUS = 5;
var WANT_LOOK_DEBUG_LINE = false; var WANT_LOOK_DEBUG_LINE = false;
var WANT_LOOK_DEBUG_SPHERE = true; var WANT_LOOK_DEBUG_SPHERE = false;
var INTERSECT_COLOR = { var INTERSECT_COLOR = {
red: 255, red: 255,
@ -540,7 +540,8 @@
velocity.x *= -0.15 velocity.x *= -0.15
} else if (position.x > upperCorner.x) { } else if (position.x > upperCorner.x) {
position.x = upperCorner.x; position.x = upperCorner.x;
velocity.x *= -0.15 } velocity.x *= -0.15
}
if (position.y < lowerCorner.y) { if (position.y < lowerCorner.y) {
position.y = lowerCorner.y; position.y = lowerCorner.y;
velocity.y *= -0.15 velocity.y *= -0.15