Skip to content

Instantly share code, notes, and snippets.

@digitsensitive
Created March 2, 2019 14:54
Show Gist options
  • Select an option

  • Save digitsensitive/53239946dfb92823d20aa959a15bb508 to your computer and use it in GitHub Desktop.

Select an option

Save digitsensitive/53239946dfb92823d20aa959a15bb508 to your computer and use it in GitHub Desktop.
Let's create a dungeon generator for Phaser 3 using Binary Space Partitioning - Create Instance
this.treeInstance = new Tree({
width: this.game.canvas.width,
height: this.game.canvas.height,
tileSize: 8,
leafSize: { min: 10, max: 20 }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment