tilegame / TileExperiments

experiments with tiling systems for web games.
https://tilegame.github.io/TileExperiments/
0 stars 0 forks source link

Scrolling and CSS #2

Closed fractalbach closed 6 years ago

fractalbach commented 6 years ago

the translation effect works nicely to keep the middle tile in the center when you zoom-in or zoom-out. But, when you zoom-in, you can't scroll up or left.

https://github.com/fractalbach/TileExperiments/blob/a05e08a678d80e8bb3e10edec7e375417f70425f/index.html#L45-L48

scrollz

Ideal Solution would allow for the scrolling in all 4 directions, AND the ability to zoom-in/out toward the center. (similar behaviour to google maps)