benlikescode / geohub

Free, open source geoguessr alternative
https://www.geohub.gg
228 stars 21 forks source link

Add "Undo Last Move" button #97

Closed eirrw closed 2 months ago

eirrw commented 4 months ago

Tracks all moves made via Lat/Lng position using an in-memory array. The undo button added to the game screen will pop the last move off the end of the array and return to that position. The button is hidden for no-move games, since it's effectively useless.

If I should have made an issue first, please let me know.

screenshot ![image](https://github.com/benlikescode/geohub/assets/9093436/010d12fc-80c9-4063-a1b1-3fddda78682b)
vercel[bot] commented 4 months ago

@eirrw is attempting to deploy a commit to the GeoHub Team on Vercel.

A member of the Team first needs to authorize it.

benlikescode commented 4 months ago

Will take a look at this soon. Not a problem, but for the future would be nice to first create an issue or feel free to message me.

Guessing the motivation for this feature is to just move around quicker?

benlikescode commented 4 months ago

I have the ability to create a checkpoint on the TODO but I guess both these options could be useful to have

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
geohub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2024 11:32pm
eirrw commented 4 months ago

Guessing the motivation for this feature is to just move around quicker?

Yep, pretty much. I find that it especially comes in handy when Street View decides to jump off a bridge or from a highway onto a side road.

benlikescode commented 2 months ago

Yes, definitely a nice to have for when it pans off bridges! Thanks for taking this on.