adam-lynch / back-of-your-hand

How well do you know your area? Test your knowledge by locating streets with this game.
https://backofyourhand.com
Mozilla Public License 2.0
79 stars 9 forks source link

Update Map.svelte #33

Closed john-webb closed 1 year ago

john-webb commented 2 years ago

Experiment with changing initial circle on map drag

adam-lynch commented 2 years ago

Thanks John. It's interesting alright!

I don't like how when you zoom out, the centre moves. Also when you move horizontally (on desktop and mobile) the circle gets clipped / cut off (I assume by the newly rendered map tiles). And it kinda glitches when you zoom in and out.

I imagine there could be ways to make it smoother, this is just an experiment of course. But what do you think of the idea now? I'm not sure. Even if it was smooth;

Maaaybe if they've moved N distance from the original centre, we could draw another circle (styled differently) with a popup letting them know they can tap it to change location. But I don't want to confuse people either; if that's shown and they press "start", it won't use that location.

What's interesting is what you did is almost like introducing a cursor on mobile 🤯

(Happy to just chat it through offline if you want)