0

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

Rabbid76
  • 202,892
  • 27
  • 131
  • 174
IrisD
  • 1
  • https://pastebin.com/ibb11E6p – IrisD Jul 28 '22 at 12:15
  • You need to add the code to the question. This is not a recommendation or just a "nice to have". Links to external resources tend to break or the content may change. – Rabbid76 Jul 28 '22 at 12:38

0 Answers0