Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arkyris opened this issue Mar 20, 2023 · 0 comments
Open

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

Arkyris opened this issue Mar 20, 2023 · 0 comments

Comments

@Arkyris
Copy link

Arkyris commented Mar 20, 2023

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 Arkyris changed the title I'm having trouble with the simple tile modle I'm having trouble with the simple tile model Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant