From 858075c21340d11cf83edc564ab3c8a6ce1f3c4b Mon Sep 17 00:00:00 2001 From: RedEnchilada Date: Sat, 14 May 2016 09:36:27 -0500 Subject: [PATCH] Add slight gravity while underwater Mostly just for visual effect, rather than any gameplay implications --- level/Dolphin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level/Dolphin.js b/level/Dolphin.js index ca25003..204205c 100644 --- a/level/Dolphin.js +++ b/level/Dolphin.js @@ -120,7 +120,7 @@ Dolphin = function(level, axis, position, z) { moveY = Input.held("up") ? -1 : Input.held("down") ? 1 : 0; dolphin.momentum.x += moveX*moveStr; - dolphin.momentum.y += moveY*moveStr; + dolphin.momentum.y += moveY*moveStr + 0.001; dolphin.momentum.x *= 0.99; dolphin.momentum.y *= 0.99;