Added optional "pixel perfect" input checks and tested against static sprites, animated sprites, physics sprites and sprites positioned outside the screen (needing camera shift to appear).

This commit is contained in:
Richard Davey
2013-09-11 16:25:46 +01:00
parent f260108433
commit fba731e740
12 changed files with 605 additions and 91 deletions
+7 -7
View File
@@ -15,17 +15,17 @@ Phaser.Utils.Debug = function (game) {
this.game = game;
this.context = game.context;
this.font = '14px Courier';
this.lineHeight = 16;
this.renderShadow = true;
this.currentX = 0;
this.currentY = 0;
this.currentAlpha = 1;
};
Phaser.Utils.Debug.prototype = {
font: '14px Courier',
lineHeight: 16,
renderShadow: true,
currentX: 0,
currentY: 0,
currentAlpha: 1,
context: null,
/**
* Internal method that resets the debug output values.