Skip to content

Register only the correct amount of tiles by rotation #22

@MrAmericanMike

Description

@MrAmericanMike

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions