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:
Gionatan Iasio 2015-05-16 19:59:12 +02:00
parent f78a4cb337
commit 1bbb3bb903

View file

@ -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);