title: Pygame Rotated Shooting
body: <p>Me and a few friends have been coding an intresting new shooting mechanic. For It to work, we need to shoot in the direction the player is facing. The Sprite is being rotated with Pygame.Transform.Rotate. How can we get an angle, and shoot our bullet in that direction?</p>
  
  <p>Here is Our Code for rotation of the Sprite</p>
  
  <pre><code> char_image_number = pygame.mouse.get_pressed()
  
      if char_image_number == (0, 0, 0):
              char_image = pygame.image.load(player_none).convert_alpha()
              char_image = pygame.transform.rotate(char_image, angle)
              screen.blit(background, (0,0))
              screen.blit(char_image,(540, 260))
              pygame.display.update()
      elif char_image_number == (1, 0, 0):
              print (angle)
              char_image = pygame.image.load(player_left).convert_alpha()
              angle+=1
              char_image = pygame.transform.rotate(char_image, angle)
              screen.blit(background, (0,0))
              screen.blit(char_image,(540, 260))
              pygame.display.update()
      elif char_image_number == (0, 0, 1):
              print (angle)
              angle-=1
              char_image = pygame.image.load(player_right).convert_alpha()
  
              char_image=pygame.transform.rotate(char_image, angle)
              screen.blit(background, (0,0))
              screen.blit(char_image,(540, 260))
  
              pygame.display.update()
  
      elif char_image_number == (1, 0, 1):
              char_image = pygame.image.load(player_both).convert_alpha()
              char_image = pygame.transform.rotate(char_image, angle)
              screen.blit(background, (0,0))
              screen.blit(char_image,(540, 260))
              pygame.display.update()
  </code></pre>
  
  <p>How can we shoot at the angle the player is facing?</p>