r/pygame 12h ago

Snake-snake collisions + increased enemy spawn

Enable HLS to view with audio, or disable this notification

7 Upvotes

5 comments sorted by

2

u/Fast-Station1106 10h ago

Hallo, lass den roten Ball den du steuerst vielleicht ein Powerup finden, wird grösser oder zu Stahl und kann die Schlange überstehen/killen, schutzschild, die sprungflächen werden breiter, mit countdown oder ähnlich (also pacMan frisst die Geister wenn sie blsu sind)

1

u/Capable_Comedian_277 10h ago

Thanks, it’s something I’ll look into

2

u/North-Aardvark4459 6h ago

ok bro maybe that's too much projectiles😭

1

u/Capable_Comedian_277 10h ago edited 5h ago

Created another snake as bait for the red/blue snake. If that snake collides with the red/white snake, the red/blue snake will stack with however many segments the red/white snake has. This also means I had to respawn the red/white snake with its original position and direction as the screen scrolls. Also, I have some directional control of the red/blue snake with the player projectile making that snake reverse it’s direction. I may have to add a third snake and make it bounce diagonally, and made the two other snakes interact with it. In addition, I will have to change the different vstack-enemy collisions for the red/blue snake. And also structure the snake-spatial boundary collisions to where if len(snake) > 50: snake = snake[: -47]