patorjk / JavaScript-Snake

The game of Snake written in JavaScript.
MIT License
536 stars 631 forks source link

Pause when user moves to a different tab #90

Open oldmsfs opened 1 year ago

oldmsfs commented 1 year ago

I think it would be cool if the site would automatically when the user moves to different tab

mmpalasc commented 8 months ago

That sounds like a good idea. I'm working on it right now. As soon as I finish, I will post another comment here and submit a pull request.

mmpalasc commented 8 months ago

I finished my work and I submitted a PR here: https://github.com/patorjk/JavaScript-Snake/pull/114 I also added some info for the game itself and an info button in welcome screen. I hope it's a good addition.