Open parkm opened 10 years ago
You should make an input UI object so I can add in a CLI that doesn't auto-pause the game :)
Not sure what you mean. What is auto pausing the game?
It pauses because you lose focus when you focus the console, which is currently the only way to interface with the game via CLI. It's useful in some situations to lose focus and pause for time sensitive things, but it'd be nice to be able to use the CLI while the game is playing too.
Oh I see. It'd probably be easier to just use the DOM for that. Similar to the little cheat command thing we have. Or we could have some sort of flag that would disable pausing which could be in the cheats area. It'd be nice to have a little debug options menu which would have persistent values, this way I could specify a certain renderer to use (browser on my laptop works better with canvas) and other useful stuff.
Oh, okay that'd work. We'd probably want to put the game and debug controls in a div and base the pause menu focus on that div. That should prevent the game from pausing while using the debug thang