Skip to content

Instantly share code, notes, and snippets.

@digitsensitive
Last active March 2, 2019 15:02
Show Gist options
  • Select an option

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

Select an option

Save digitsensitive/da9bf06ba64e5360d13ec6fc7c064a10 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({
map: {
width: this.game.canvas.width,
height: this.game.canvas.height,
tileSize: 8
},
nodes: { size: { min: 10, max: 20 } }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment