Okay, my level editor setup is causing me synching grief. Need to write it out.
Things need to happen in order:
- LevelOrganizer reads the groups (except prev_gate_num and prev_group_num) and levels and writes them to LevelManager.
- LevelSelect reads the groups (prev_gate_num and prev_group_num) and gates and writes them to LevelManager.
- LevelSelect calls LevelManager.update_accessible_levels()
Okay, that was all happening already. I just forgot that some levels don’t belong to a group. They’re not accessible from the player-facing level-select screen but the level organizer that I use to arrange levels into groups has levels without a group.
Right.
So here’s where I’m at with the level selection screen. It’s very jank but it works. And definitely better than the level organizer which I haven’t changed at all.