im very new to coding and pygame, im making a snake game and im adding walls using pygame.draw.line and i want to make it so when the player (snake) bumps into it, it triggers a game over. how do i add collision to it or write something that detects when the player comes in contact with the pygame.draw.line? code is in the comments
Asked
Active
Viewed 17 times