beatmapper
beatmapper copied to clipboard
Note sorting improvements
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?
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".
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.