Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
4f936aaa42
2 changed files with 24 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ class Raspberry extends Entity {
|
|||
* Maximum velocity, so the raspberry doesn't get to infinite speed when boosting.
|
||||
* @private
|
||||
*/
|
||||
private static readonly maxVelocity: number = 100;
|
||||
private static readonly maxVelocity: number = 75;
|
||||
|
||||
/**
|
||||
* Width.
|
||||
|
|
@ -70,7 +70,7 @@ class Raspberry extends Entity {
|
|||
* @param value
|
||||
*/
|
||||
set velocity(value: number) {
|
||||
this._velocity = (Math.abs(this.velocity) > Raspberry.maxVelocity) ? Raspberry.maxVelocity : value;
|
||||
this._velocity = (Math.abs(this.velocity) > Raspberry.maxVelocity) ? -Raspberry.maxVelocity : value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue