More late-night math.

This commit is contained in:
Richard Davey
2013-09-01 02:28:51 +01:00
parent 5d4da0ce66
commit 99e0934244
3 changed files with 97 additions and 75 deletions
+2 -2
View File
@@ -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;
+2
View File
@@ -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();
}