osso73 / classic_games

A series of classic games in Kivy
MIT License
3 stars 1 forks source link

Add menu in snake game #37

Closed osso73 closed 3 years ago

osso73 commented 3 years ago

Menu with some options. At least:

Also use it to keep track of score.

osso73 commented 3 years ago

Menu added. Speed and size buttons not yet implemented. But I can start new game, and exit the program.

osso73 commented 3 years ago

Added a help button.

osso73 commented 3 years ago

The size button is now implemented, as described in issue #50.

osso73 commented 3 years ago

The speed button is now implemented. Speed is defined as a factor, that can be one of the following: 0.5, 0.8, 1, 1.2, 1.5, 2. Game starts with factor=1, and each time the button is pressed in will change to the next value of the list.

The factor is used to divide the time between updates: so the higher the factor, the less time between updates, hence higher is the speed. The speed changes immediately when pressing the button.

Right now pressing the button displays a popup message, but not sure if I want to remove the popup... I'll leave it like this for now.

osso73 commented 3 years ago

All buttons implemented, now the issue can be closed.