osso73 / classic_games

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

Replace final popup by visual change when snake hits something #55

Closed osso73 closed 3 years ago

osso73 commented 3 years ago

Instead of showing a popup, change the head of the snake (and play the end sound), to indicate the snake has hit something.

This can be implemented by addind a crashed attribute to SnakeHead, that becomes True when hit something. If True, change the colour of the head using a colour attribute. The colour attribute can be cycling over a number of colours.

osso73 commented 3 years ago

Ok, done.