diff --git a/examples/particles/particles.js b/examples/particles/particles.js index e1a21f8..b20400b 100644 --- a/examples/particles/particles.js +++ b/examples/particles/particles.js @@ -8,7 +8,7 @@ let KeyConsts = MomentumEngine.Consts.Input.Keys; class BlueParticle extends MomentumEngine.Classes.Rect { constructor (x, y) { - super(x, y, 1, 1, new MomentumEngine.Classes.Color(255, 255, 255, 0)); + super(x, y, 1, 1, new MomentumEngine.Classes.Color(0, 255, 0)); this.timeToLive = 25500; } diff --git a/src/classes/game.js b/src/classes/game.js index d9989c6..e604e2d 100644 --- a/src/classes/game.js +++ b/src/classes/game.js @@ -97,11 +97,6 @@ class Game extends Entity { } } - console.log(this._fullScreenXScaling); - console.log(this._fullScreenYScaling); - console.log(this._fullScreenXPos); - console.log(this._fullScreenYPos); - // Call getContext last for Ejecta only. if (typeof ejecta !== "undefined") { diff --git a/src/classes/text.js b/src/classes/text.js index 04fcd33..a663730 100644 --- a/src/classes/text.js +++ b/src/classes/text.js @@ -90,12 +90,12 @@ class Text extends Entity { if (this.font.fill) { this._game.context.fillStyle = this.font.fill; - this._renderText(this.text, this.relativeLeft, this.relativeTop, this.letterSpacing, this._game.context.fillText.bind(this._game.context)); + this._renderText(this.text, this._scaleForLeft(this.relativeLeft), this._scaleForTop(this.relativeTop), this.letterSpacing, this._game.context.fillText.bind(this._game.context)); } if (this.font.stroke) { this._game.context.strokeStyle = this.font.stroke; - this._renderText(this.text, this.relativeLeft, this.relativeTop, this.letterSpacing, this._game.context.strokeText.bind(this._game.context)); + this._renderText(this.text, this._scaleForLeft(this.relativeLeft), this._scaleForTop(this.relativeTop), this.letterSpacing, this._game.context.strokeText.bind(this._game.context)); } return true;