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.
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 acolour
attribute. Thecolour
attribute can be cycling over a number of colours.