roice3 / MagicTile

Non-euclidean Rubik's Cube Analogues
http://www.gravitation3d.com/magictile
MIT License
87 stars 12 forks source link

Example of how to move across or traverse a 2D tessellation like HyperRogue? #34

Open termhare opened 1 year ago

termhare commented 1 year ago

I just asked How to "move" or "traverse" the hyperbolic tessellation in MagicTile? on StackOverflow, but not sure anyone is going to be able to handle that since it's so specific. Is there a way in MagicTile or any of the central libraries to "move" or "traverse" the 2D hyperbolic tessellation, like HyperRogue?

Screenshot 2023-01-19 at 5 22 13 AM

I'm curious how you would figure out how to construct the new tiles on the fly as you "traverse" the tessellation, I'm having a hard time imagining how to solve that, hoping you might have some deeper insight. If it's not possible in MagicTile, how would you think about solving it?

Also out of curiosity, what is meant by "stickers" in the code base? I can't figure it out.

termhare commented 1 year ago

I got as far as thinking of doing something like this:

Geodesic(Geometry.Hyperbolic, currentPosition, desiredPosition)

But don't know how I would animate that, or how/if it would work.