mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
Fix Rope.js
Rope creation key parameter didn't work, because PIXI.Rope requires a texture, not string. Changed it like Sprite.
This commit is contained in:
parent
f78a4cb337
commit
1bbb3bb903
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ Phaser.Rope = function (game, x, y, key, frame, points) {
|
|||
*/
|
||||
this._scroll = new Phaser.Point();
|
||||
|
||||
PIXI.Rope.call(this, key, this.points);
|
||||
PIXI.Rope.call(this, PIXI.TextureCache['__default'], this.points);
|
||||
|
||||
Phaser.Component.Core.init.call(this, game, x, y, key, frame);
|
||||
|
||||
|
|
Loading…
Reference in a new issue