wavefunctioncollapse icon indicating copy to clipboard operation
wavefunctioncollapse copied to clipboard

I'm having trouble with the simple tile model

Open Arkyris opened this issue 1 year ago • 0 comments

I've gotten one to work before, however it took a lot of brute force trial and error. I feel I have a lack of understanding of how the definition works. Currently I'm just trying to get this to work.

Here is my current definition:

const dungeonDef = {
    path: '../../../../../static/assets/my_dungeon',
    tilesize: 48,
    tiles: [
        { name: "floor", symmetry: "X", weight: 15},
        { name: "wall_brul", symmetry: "X", weight: 5 },
        { name: "wall_brur", symmetry: "X", weight: 5 },
        { name: "wall_trdl", symmetry: "X", weight: 5 },
        { name: "wall_trdr", symmetry: "X", weight: 5 },
    ],
    neighbors: [
        { left: "floor", right: "floor" },
        { left: "floor", right: "wall_brul" },
        { left: "floor", right: "wall_trdl"},
        { left: "wall_brul", right: "wall_brur" },
        { left: "wall_trdl", right: "wall_trdr"},
        { left: "wall_brur", right: "floor"},
        { left: "wall_trdr", right: "floor"}
    ],
};

I feel i have it constrained like so: Floor can be to the right of floor bottom run wall with corner going up to the left can go to the right of floor floor can go to the right of bottom run wall with corner going up to the right bottom run wall with corner going up to the right can go to the right of bottom run wall with corner going up to the left and same for the top runs.

And how its looking: image

How I would like it to look: image A bunch of these structures

So I'm confused 2 fold. Why are things that are never defined to be able to be next to each other doing so and how would I make sure they can align properly top and bottom?

Arkyris avatar Mar 20 '23 03:03 Arkyris