Closed osso73 closed 3 years ago
Algo do t'he same for all games
Already done for buscaminas. Changing buttons for game mode, mute and level.
Done for ahorcado. Mute button.
Done for 15puzzle, mute button.
Done for 2048, mute button.
Done for memory, mute button.
Done for pong with pause button, and snake with pause and mute buttons. I keep pause
button separated from new game
button for simplicity, although they could be the same button. But this would require additional logic to detect if the game has to start from 0, or just activate motion. And would not allow a game to restart without being finished. So I prefer having two separate buttons.
All buttons implemented, issue can be closed.
Currently the icons on the toolbar are fixed. They should change:
have one single play/pause button. When game is finished, the icon shows a "play" button, this will start a new game; when game is ongoing, show a "pause" button, that will pause the game if clicked; when game is paused, show a "play" button, which will continue the game (e.g. not start a new game).
mute button: if sound is on, icon should be "sound_on"; when clicked, change icon to "sound_mute", and mute the sounds; when clicked again, change the icon back to "sound_on" and activate sounds.