Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register only the correct amount of tiles by rotation #22

Open
MrAmericanMike opened this issue Apr 26, 2022 · 0 comments
Open

Register only the correct amount of tiles by rotation #22

MrAmericanMike opened this issue Apr 26, 2022 · 0 comments

Comments

@MrAmericanMike
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant