r/pygame • • Sep 13 '26

Added a Third Snake

12 Upvotes

1 comment sorted by

1

u/Capable_Comedian_277 Sep 13 '26 edited Sep 13 '26

At this point, I’ll have to just make player projectile to collide with snake3, making snake3 clear, and allow it respawn as the screen scrolls, the same way with the red/white snake. Here’s the catch, I will only make player projectile collide with the snake’s head, not the body segments. Overall, the red/gold snake is the most difficult to beat because what I will do is double its speed, and the only way to get rid of it is with the projectile. Also, if the player itself attempts to collide with it, the score will lower, along with the player dropping downwards. In case you’re wondering how the red/blue snake stacks and slices, I’ve set the condition to where if len(snake) > 40: snake = snake[: -38]. Before, it was just stack and slice repeatedly with spatial boundary collisions.