Add slight gravity while underwater

Mostly just for visual effect, rather than
any gameplay implications
This commit is contained in:
RedEnchilada 2016-05-14 09:36:27 -05:00
parent 3063fe2d80
commit 858075c213

View file

@ -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;