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