Re-done the pointer handler so it respects the top-most rendered sprite in priority to anything below it, for both mouse over and click events.

This commit is contained in:
Richard Davey
2013-06-03 12:03:34 +01:00
parent 1c37cd1a96
commit 82d4ba4538
18 changed files with 689 additions and 141 deletions
+8
View File
@@ -182,6 +182,11 @@ module Phaser {
*/
public z: number = 0;
/**
* Render iteration
*/
public renderOrderID: number = 0;
/**
* This value is added to the angle of the Sprite.
* For example if you had a sprite graphic drawn facing straight up then you could set
@@ -326,6 +331,9 @@ module Phaser {
*/
public destroy() {
//this.input.destroy();
}
/**