CodingTrain / CodingTrain/Wave-Function-Collapse

Preload more data

未关闭
#26 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
218
派生
64
PR 合并指标
30 天内没有已合并 PR

描述

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...

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。