beatmapper icon indicating copy to clipboard operation
beatmapper copied to clipboard

Note sorting improvements

Open joshwcomeau opened this issue 6 years ago • 2 comments
trafficstars

When exporting maps from Beatmapper, I sort all notes so that they occur chronologically. If multiple notes occur at the same time, I sort them so that they'll always occur in the same order, even if they were placed in different orders.

This generally works well, but there are two problems:

  • I think it breaks the game's "flipping" mechanic, where if there's a blue note beside a red one, they swap places. Investigation needed though, maybe I just haven't noticed... but I suspect I should take block color into account (so that if the blue one is to the left of the red one, it comes first)
  • Sometimes you want to place things out of order, for effect. For example, it would be neat to have vertical pillars of notes grow out from the bottom!

I should tackle two things:

  • [x] Make sure my sorting logic is correct, so that blocks flip correctly
  • [ ] Allow users to disable this sorting logic. I could make this an app setting... a little scared of users setting it and forgetting it, but presumably they'll notice if their map is fucked up?

joshwcomeau avatar Nov 17 '19 20:11 joshwcomeau

My sorting logic actually is right! So now I just need an option to disable it 🤔 it's tricky since if the user re-enables it, it'll destroy their work. This feels like a hard thing to do "well".

joshwcomeau avatar Nov 26 '19 14:11 joshwcomeau

Stretch goal: What if, when multiple notes were selected at the same time, a new button in the selection panel appears: "Customize block order".

It could open a modal, with some sort of visualization. Some way to show the notes, but also their order, and drag to reorder.

joshwcomeau avatar Nov 26 '19 14:11 joshwcomeau