Ask coding questions

← Back to all posts
What arguements should I put when calling my collision detection function?
figglediggle (140)

I call check_collision() on line 71 in my game loop. The purpose of this is to check if the two rects (the two players in the game) have collided or not. What I am unclear about is what arguments I should use. I don't think using the XY coordinates of the two rects would work, and I don't know of any way to assign the rects to variables that could be used as arguments. Any help would be appreciated.