CodingTrain / CodingTrain/Wave-Function-Collapse

Register only the correct amount of tiles by rotation

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
218
Forks
64
PR merge metrics
No merged PRs in 30d

Description

In this branch of my fork https://github.com/MrAmericanMike/Wave-Function-Collapse/tree/better-tile-initialization

I created an "addTile" function. Basically what it does is push a new tile to the tiles array and if rotation is greater than 1 it will grab the last tile from the tiles array and push it as a new tile rotated 90º. (Notice we always rotate 90º as we are using the last tile from the array.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the repository with the better-tile-initialization branch in the linked fork, focusing on the addTile function and the tiles array described in the issue. Trace how rotation values register tiles, then verify that the resulting array contains only the intended number of rotated tiles.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.