Closed osso73 closed 3 years ago
Note that the tail image has to be directional as well, like the head (e.g. have one image for each direction). This can be tricky...
Tail added. I had to add some complexity in the SnakePart class to handle the direction. This is done now.
The last snake part should show a different image, to show it's the tail of the snake.
Idea for implementation: the SnakePart has an attribute called
is_tail
. If True, the part will show the image of a tail. TheGameBoard.snake_parts
attribute has to be aPropertyList()
. AddGameBoard.on_snake_parts
method that will ensure every time a new part is added the tail will be flagged to the last part.Need to find a nice image for the tail.