Skip to content

Instantly share code, notes, and snippets.

@lardratboy
Created August 28, 2014 19:51
Show Gist options
  • Save lardratboy/422f4204437c87307302 to your computer and use it in GitHub Desktop.
Save lardratboy/422f4204437c87307302 to your computer and use it in GitHub Desktop.
Phaser + PIXI Rope (quick hack until official support)
class Rope extends Phaser.Group {
constructor(game, texture, points) {
PIXI.Rope.call(this, texture, points);
super(game);
}
}
bpt.prefab.applyMixins_( Rope,[PIXI.Strip,PIXI.Rope] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment