mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 11:31:30 +08:00
Updates
This commit is contained in:
@@ -177,6 +177,31 @@ module Phaser {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Multiply this vector by the given scalar.
|
||||
*
|
||||
* @param {number} scalar
|
||||
* @return {Vector2} This for chaining.
|
||||
*/
|
||||
public mutableMultiplyByScalar(scalar: number): Vector2 {
|
||||
this.x *= scalar;
|
||||
this.y *= scalar;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Divide this vector by the given scalar.
|
||||
*
|
||||
* @param {number} scalar
|
||||
* @return {Vector2} This for chaining.
|
||||
*/
|
||||
public mutableDivideByScalar(scalar: number): Vector2 {
|
||||
this.x /= scalar;
|
||||
this.y /= scalar;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse this vector.
|
||||
*
|
||||
|
||||
@@ -258,7 +258,7 @@ module Phaser {
|
||||
|
||||
this.isPlaying = false;
|
||||
this.isFinished = true;
|
||||
// callback
|
||||
// callback goes here
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user