Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Preload more data

未关闭
#26 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
frontend

调研方向

首先阅读 tile.js,并跟踪在绘制循环之前如何使用 Grid、Cell、TileSet 和 Tile.analyse();将提议的方法与链接的 Wave-Function-Collapse 实现进行比较。完成的标准应是:在绘制之前准备好所需的位置、坐标、邻居值和自连接过滤,同时允许点击特定的 Cell,并减少冗余循环。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
JavaScript
星标
219
派生
64
PR 合并指标
30 天内没有已合并 PR

贡献指南

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

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CodingTrain/Wave-Function-Collapse 的其他 Issue

查看 CodingTrain/Wave-Function-Collapse 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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