Update: CC - SnailRunner - Entity Loaded (78gnds8jrj.js) 127 bytes modified

beta.r3js.org
-=yb4f310 2018-03-09 15:28:41 +01:00
parent e6bdbea81e
commit f83b17fe0e
1 changed files with 10 additions and 0 deletions

View File

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