errorinn / netsim

Web-based network simulator for teaching hacking to high schoolers
MIT License
151 stars 30 forks source link

UI: pausing/resuming should be possible without moving the mouse in between #4

Open guntbert opened 7 years ago

guntbert commented 7 years ago

Sometimes it might be useful/necessary to resume the game and quickly pause it again. This is much easier when there are not two buttons (one for start, one for pause) but just one button, that changes its icon (and action) from "pause" when time is running to "start" (when paused).

gediz commented 7 years ago

It's probably a little late to say but you can use Spacebar to pause and resume.

https://github.com/errorinn/netsim/blob/0c75ef55d03fe42b5f8e6b0b28cc97eba925072c/phaser.inc.php#L111