parkm / oldbpm

A JavaScript game where you shoot at bubbles.
0 stars 1 forks source link

UI Improvements #58

Open parkm opened 10 years ago

parkm commented 10 years ago
dgpt commented 9 years ago

You should make an input UI object so I can add in a CLI that doesn't auto-pause the game :)

parkm commented 9 years ago

Not sure what you mean. What is auto pausing the game?

dgpt commented 9 years ago

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.

parkm commented 9 years ago

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.

dgpt commented 9 years ago

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