Wave-Function-Collapse icon indicating copy to clipboard operation
Wave-Function-Collapse copied to clipboard

Register only the correct amount of tiles by rotation

Open MrAmericanMike opened this issue 3 years ago • 1 comments

In this branch of my fork https://github.com/MrAmericanMike/Wave-Function-Collapse/tree/better-tile-initialization

I created an "addTile" function. Basically what it does is push a new tile to the tiles array and if rotation is greater than 1 it will grab the last tile from the tiles array and push it as a new tile rotated 90º. (Notice we always rotate 90º as we are using the last tile from the array.

MrAmericanMike avatar Apr 26 '22 16:04 MrAmericanMike

This is great! (I realize my reply is almost 3 years later!). I'm starting to add links and more documentation to this repo. Do you want to add something to the README? See #46

shiffman avatar Jan 26 '25 04:01 shiffman