mirror of
https://github.com/wassname/phaser.git
synced 2026-07-09 00:20:17 +08:00
Fixes issues reported in #389
This commit is contained in:
@@ -1034,7 +1034,7 @@ Phaser.BitmapData.prototype.lf = Phaser.BitmapData.prototype.beginLinearGradient
|
||||
* Shortcut to beginRadialGradientFill.
|
||||
* @method Phaser.BitmapData.prototype.rf
|
||||
*/
|
||||
Phaser.BitmapData.prototype.rf = Phaser.BitmapData.prototype.beginRadialGradientFill;
|
||||
// Phaser.BitmapData.prototype.rf = Phaser.BitmapData.prototype.beginRadialGradientFill;
|
||||
|
||||
/**
|
||||
* Shortcut to beginBitmapFill.
|
||||
@@ -1046,7 +1046,7 @@ Phaser.BitmapData.prototype.rf = Phaser.BitmapData.prototype.beginRadialGradient
|
||||
* Shortcut to endFill.
|
||||
* @method Phaser.BitmapData.prototype.ef
|
||||
*/
|
||||
Phaser.BitmapData.prototype.ef = Phaser.BitmapData.prototype.endFill;
|
||||
// Phaser.BitmapData.prototype.ef = Phaser.BitmapData.prototype.endFill;
|
||||
|
||||
/**
|
||||
* Shortcut to setStrokeStyle.
|
||||
|
||||
+6
-6
@@ -120,16 +120,16 @@ Phaser.Tile = function (layer, index, x, y, width, height) {
|
||||
this.collideDown = false;
|
||||
|
||||
/**
|
||||
* @property {function} callback - Tile collision callback.
|
||||
* @property {function} collisionCallback - Tile collision callback.
|
||||
* @default
|
||||
*/
|
||||
this.callback = null;
|
||||
this.collisionCallback = null;
|
||||
|
||||
/**
|
||||
* @property {object} callbackContext - The context in which the collision callback will be called.
|
||||
* @property {object} collisionCallbackContext - The context in which the collision callback will be called.
|
||||
* @default
|
||||
*/
|
||||
this.callbackContext = this;
|
||||
this.collisionCallbackContext = this;
|
||||
|
||||
};
|
||||
|
||||
@@ -141,12 +141,12 @@ Phaser.Tile.prototype = {
|
||||
*
|
||||
* @method Phaser.Tile#setCollisionCallback
|
||||
* @param {function} callback - Callback function.
|
||||
* @param {object} context - Callback will be called with this context.
|
||||
* @param {object} context - Callback will be called within this context.
|
||||
*/
|
||||
setCollisionCallback: function (callback, context) {
|
||||
|
||||
this.collisionCallbackContext = context;
|
||||
this.collisionCallback = callback;
|
||||
this.collisionCallbackContext = context;
|
||||
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user