title: Check if a point collides with a surface (pixel perfect) in pygame
body: <p>I'm developing a game (a <a href="http://en.wikipedia.org/wiki/Missile_command" rel="nofollow noreferrer">missile command</a> clone) where I need to check if a <a href="http://www.pygame.org/docs/ref/surface.html" rel="nofollow noreferrer"><code>surface</code></a> (a building) collides with a <code>point</code> (a missile).</p>
  
  <p><img src="https://i.stack.imgur.com/beOg8.png" alt="screenshot missile command"></p>
  
  <p>How can I check if a missile hits a building?</p>
  
  <p>A <a href="http://www.pygame.org/docs/ref/rect.html" rel="nofollow noreferrer"><code>Rect</code></a> has the <a href="http://www.pygame.org/docs/ref/rect.html#Rect.collidepoint" rel="nofollow noreferrer"><code>collidepoint</code></a> method, but I want it to be pixel perfect.</p>
  
  <p><img src="https://i.stack.imgur.com/irz9a.png" alt="scene"> => using a <code>Rect</code> => <img src="https://i.stack.imgur.com/BITDT.png" alt="using rect"> => but it should be pixel perfect => <img src="https://i.stack.imgur.com/ew8MO.png" alt="want it pixel perfect"></p>