Skip to content

Commit 1bbb3bb

Browse files
committed
Fix Rope.js
Rope creation key parameter didn't work, because PIXI.Rope requires a texture, not string. Changed it like Sprite.
1 parent f78a4cb commit 1bbb3bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/Rope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Phaser.Rope = function (game, x, y, key, frame, points) {
6161
*/
6262
this._scroll = new Phaser.Point();
6363

64-
PIXI.Rope.call(this, key, this.points);
64+
PIXI.Rope.call(this, PIXI.TextureCache['__default'], this.points);
6565

6666
Phaser.Component.Core.init.call(this, game, x, y, key, frame);
6767

0 commit comments

Comments
 (0)