Skip to content

I'm having trouble with the simple tile model #7

@Arkyris

Description

@Arkyris

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions