Advertisement
cookertron

Luke James - remove bullets

Mar 11th, 2022
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. deadbullets = []
  2.     for b in bullets:
  3.         for w in wall:
  4.             if b collides with w:
  5.                 deadbullets.append(b)
  6. for b in deadbullets:
  7.     bullets.remove(b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement