CodingTrain / CodingTrain/Wave-Function-Collapse
Preload more data
- 主要言語
- 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...
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず tile.js を読み、描画ループの前に Grid、Cell、TileSet、Tile.analyse() がどのように使われているかを追跡します。提案されたアプローチを、リンクされた Wave-Function-Collapse 実装と比較します。必要な位置、座標、近傍の値、自己接続のフィルタリングが描画前に準備され、特定の Cell をクリックでき、冗長なループが削減されていれば完了とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100