cubing / alg.cubing.net

▶️ Multi-purpose puzzle viewer – the old generation of alg/reconstruction viewing and sharing. Superseded by Twizzle.
https://alg.cubing.net
Other
184 stars 32 forks source link

For playback mode start with current move 0 #153

Open baco opened 5 years ago

baco commented 5 years ago

Instead of starting at the end of the animation, for playback mode and type=alg make the link load on the first move; or at least allow specifying the current_move on the URL

psifertex commented 4 years ago

I'm surprised this is still not an available feature. Are there no workarounds to be able to start at the beginning of playback? It seems like this would be a much more sane default.

lgarron commented 4 years ago

Are there no workarounds to be able to start at the beginning of playback? It seems like this would be a much more sane default.

It definitely would. This will all work correctly in v2, which is getting pretty close now!

psifertex commented 4 years ago

That's great to hear. Is it in a branch I could check out or even contribute to if it would be helpful?

I just checked and "v2" hasn't been touched in years if I'm reading it right.

lgarron commented 4 years ago

That's great to hear. Is it in a branch I could check out or even contribute to if it would be helpful?

I just checked and "v2" hasn't been touched in years if I'm reading it right.

I have to finish a major refactoring before the timeline code is ready to handle things like this. v2 is currently being developed inside the cubing.js repo at https://github.com/cubing/cubing.js/tree/main/app/alg.cubing.net

Apologies, this isn't at all obvious, and it needs a few more important things before it's easy for someone new to contribute. But hopefully that day will come soon!

If you do want to tinker, though, the instructions at https://github.com/cubing/cubing.js#development should work!