mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
More late-night math.
This commit is contained in:
+2
-2
@@ -48,11 +48,11 @@ Phaser.Point.prototype = {
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the x and y values of this MicroPoint object to the given coordinates.
|
||||
* Sets the x and y values of this Point object to the given coordinates.
|
||||
* @method setTo
|
||||
* @param {Number} x - The horizontal position of this point.
|
||||
* @param {Number} y - The vertical position of this point.
|
||||
* @return {MicroPoint} This MicroPoint object. Useful for chaining method calls.
|
||||
* @return {Point} This Point object. Useful for chaining method calls.
|
||||
**/
|
||||
setTo: function (x, y) {
|
||||
this.x = x;
|
||||
|
||||
@@ -397,9 +397,11 @@ Phaser.Utils.Debug.prototype = {
|
||||
if (typeof color === "undefined") { color = 'rgb(255,255,255)'; }
|
||||
if (typeof font === "undefined") { font = '16px Courier'; }
|
||||
|
||||
this.start();
|
||||
this.context.font = font;
|
||||
this.context.fillStyle = color;
|
||||
this.context.fillText(text, x, y);
|
||||
this.stop();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user