I'm working with MonoGame in VB2015 - please don't give answers that involve using C#.
Anyway, I found a snippet which I converted to VB for pixel collision. The function below accepts two rectangles, then runs a pixel check on the intersection between the two.
What I can't work out is how to send my two sprites (textures) to the function as rectangles. Or if anyone has a alternative, please let me know.
Private Shared Function IntersectPixels(rectangleA As Rectangle, dataA As Color(), rectangleB As Rectangle, dataB As Color()) As Boolean ' Find the bounds of the rectangle intersection Dim top As Integer = Math.Max(rectangleA.Top, rectangleB.Top) Dim bottom As Integer = Math.Min(rectangleA.Bottom, rectangleB.Bottom) Dim left As Integer = Math.Max(rectangleA.Left, rectangleB.Left) Dim right As Integer = Math.Min(rectangleA.Right, rectangleB.Right)
(No, this isn't the whole routine...)