Got multiple levels working!
Here’s a new level, maybe the first level the player ever sees. Very simple. Move and rotate the mirror. Teaches the mechanic.
Then in the bottom left corner I’ve got some buttons that can be used to jump between levels. Definitely not something that’ll be in the game but very useful when implementing level switching.
On startup the game will search the levels/
folder for scenes that match the pattern level_00.tscn
and create buttons for them. Clicking the button unloads the scene for the previous level and loads the new one, adding it as a child.
It came together pretty quickly. Seems like there are a lot of things that boil down to just adding and removing scenes to/from the scene tree.
My first foray into implementing a UI was not as smooth. Mostly alignment issues but I’ll watch a YouTube video on UIs or something later.
Now I’m onto designing another level.
I want this to be the solution but I need to add more obstacles to make that happen. Initially I thought I’d put a bunch of small rocks in the way but.