PennyS8 / Diverge

A neurodivergent experience in gaming
GNU General Public License v3.0
3 stars 0 forks source link

Debug Load Scenes Easily #24

Open n8hopp opened 12 hours ago

n8hopp commented 12 hours ago

Make it so that when you launch a scene that doesn't have player in it, it loads the scene properly with LevelManager

Currently, we can only run TestingGrounds by default; this makes the game really difficult to debug. Either add a debug menu that lets us select the current level, or, ideally, let it be automated by the "Run Current Scene" button. Ask Nate for help with this if you are not Nate and are interested in working on this

n8hopp commented 8 hours ago

Using this as a place to format my ideas:

there are a couple ways we could check if we're launching a scene directly:

I think the correct method would be, in LevelManager:

I'm also interested in making current_scene an exported selector, meaning we select which level launches by default when we run play. like a radio selector. So I'll be taking a look at that too. Possibly having a dictionary that you can add levels to that selector in the editor itself.