mirror of
https://github.com/wassname/phaser.git
synced 2026-07-23 13:00:41 +08:00
Added class constructors, fixed Stripshader, added relative Tween example and updated Tween source.
This commit is contained in:
@@ -689,6 +689,8 @@ Phaser.Input.prototype = {
|
||||
|
||||
};
|
||||
|
||||
Phaser.Input.prototype.constructor = Phaser.Input;
|
||||
|
||||
/**
|
||||
* The X coordinate of the most recently active pointer. This value takes game scaling into account automatically. See Pointer.screenX/clientX for source values.
|
||||
* @name Phaser.Input#x
|
||||
|
||||
@@ -1106,4 +1106,6 @@ Phaser.InputHandler.prototype = {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Phaser.InputHandler.prototype.constructor = Phaser.InputHandler;
|
||||
|
||||
@@ -169,3 +169,5 @@ Phaser.Key.prototype = {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Key.prototype.constructor = Phaser.Key;
|
||||
|
||||
@@ -395,6 +395,8 @@ Phaser.Keyboard.prototype = {
|
||||
|
||||
};
|
||||
|
||||
Phaser.Keyboard.prototype.constructor = Phaser.Keyboard;
|
||||
|
||||
Phaser.Keyboard.A = "A".charCodeAt(0);
|
||||
Phaser.Keyboard.B = "B".charCodeAt(0);
|
||||
Phaser.Keyboard.C = "C".charCodeAt(0);
|
||||
|
||||
@@ -165,4 +165,6 @@ Phaser.MSPointer.prototype = {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Phaser.MSPointer.prototype.constructor = Phaser.MSPointer;
|
||||
|
||||
@@ -327,3 +327,5 @@ Phaser.Mouse.prototype = {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Phaser.Mouse.prototype.constructor = Phaser.Mouse;
|
||||
|
||||
@@ -583,6 +583,8 @@ Phaser.Pointer.prototype = {
|
||||
|
||||
};
|
||||
|
||||
Phaser.Pointer.prototype.constructor = Phaser.Pointer;
|
||||
|
||||
/**
|
||||
* How long the Pointer has been depressed on the touchscreen. If not currently down it returns -1.
|
||||
* @name Phaser.Pointer#duration
|
||||
|
||||
+3
-1
@@ -380,4 +380,6 @@ Phaser.Touch.prototype = {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Phaser.Touch.prototype.constructor = Phaser.Touch;
|
||||
|
||||
Reference in New Issue
Block a user