Skip to content

Is this possible? #60

@koenpopma

Description

@koenpopma

What I would like to accomplish is that each floor (up and down) jumps back to the first element of each level of floors (above or below).

Simply put: all movements of "up and down" navigate to the first element of the next / previous level.

Difficulty: The floors are created dynamically, so manually adding "data-ascensor-..."-directions is not a possibility.

In addition: This is how ReverseBuro worked (their are now offline?).

For example

[1,0], [1,1], [1,2], [1,3], [1,4] goes “up” to [0,0]
[1,0], [1,1], [1,2], [1,3], [1,4] goes “down” to [2,0]

For example

Floor 17 [5,2] goes “up” to Floor 13 [4,0]
Floor 17 [5,2] goes “down” to Floor 19 [6,0]

Code example

loop: “increment-to-zero”
UP      [ y-1, 0 ]
DOWN    [ y+1, 0 ]
LEFT    prev()
RIGHT   next()

With an example image:

mymap

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions