Check collision between two rectangles
player = {x:100, y:100, width:50, height:50} enemy = {x:130, y:120, width:50, height:50} if raylib.CheckCollisionRecs(player, enemy) then print "Collision detected!"
There was an error while loading. Please reload this page.