diff --git a/78gnds8jrj.js b/78gnds8jrj.js index 9cb27d1..436c702 100644 --- a/78gnds8jrj.js +++ b/78gnds8jrj.js @@ -151,6 +151,16 @@ GameLib.CustomCode.prototype.adjustSpeed = function(delta) { if (this.speedUp) { this.speed += delta; + } else { + this.speed -= delta; + } + + if (this.speed < 0) { + this.speed = 0; + } + + if (this.speed > 50) { + this.speed = 50; } }.bind(this);