<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="function.xsl" ?>
<function-list>
  <function>
    <name>SpriteCollision Event</name>
    <description>This event is fired when two sprites collide.</description>
    <syntax>Game1_SpriteCollision(ByVal lSpriteNum1 As Long, ByVal lSpriteNum2 As Long, ByVal x As Integer, ByVal y As Integer)</syntax>
    <param-list>
      <param>
        <name>lSpriteNum1</name>
	    <description>Long. Unique sprite ID of the first sprite involved in the collision.</description>
      </param>
      <param>
        <name>lSpriteNum2</name>
	    <description>Long. Unique sprite ID of the second sprite involved in the collision.</description>
      </param>
      <param>
        <name>x</name>
	    <description>Integer. X coordinate of the center point of the collision.</description>
      </param>
      <param>
        <name>y</name>
	    <description>Integer. Y coordinate of the center point of the collision.</description>
      </param>
    </param-list>
	<remarks>To diminish the rectangle that triggers collision events, use the SpriteDiminishCollisionRect method.</remarks>
	<example>
Private Sub Game1_SpriteCollision(ByVal lSpriteNum1 As Long, ByVal lSpriteNum2 As Long, ByVal x As Integer, ByVal y As Integer)
    If (lSpriteNum1 = SPRITE_STAR And lSpriteNum2 = SPRITE_MOON) then
	  ' do processing...
	End If
End Sub
	</example>
  </function>
</function-list>

