-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
Description
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:
