Test if the region has collided with a map tile.
map.TestCollision(x, y, w, h)
x- Horizontal position of the rectangle.
y- Vertical position of the rectangle.
w- Width of the rectangle.
h- Height of the rectangle.
True if collision occurred, otherwise false.
LameMap has collision support built in. You can test whether
or not collision has occurred with
the rectangle to test.
Only valid map regions are tested for collisions; positions that are off the map area will always return 0.