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

Preload more data #26

Open
Fietsje opened this issue Apr 28, 2022 · 0 comments
Open

Preload more data #26

Fietsje opened this issue Apr 28, 2022 · 0 comments

Comments

@Fietsje
Copy link

Fietsje commented Apr 28, 2022

It would make things easier if more data is analyzed (like in tile.js) before starting the draw loop.

When creating the Grid, save the x and y positions as well as the coordinates (x1, x2, y1, y2 for example) this will eliminate the need for 2 loops as well as allowing for clicking on a specific Cell.

To each Cell in the Grid I added an up, down, left & right value to check for valid values, this saves time when comparing.
To each Tile in the TileSet I added a value to disallow for self-connecting and I filter those out in the Tile.analyse() function

my code is at: https://github.com/Fietsje/Wave-Function-Collapse

I really like seeing this project in action...

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