Rectangle Collision Example

1

DESCRIPTION

Moving block class example for rectangle collision. Collision method (MovingBlock.collide(float blockx, float blocky, float blockw, float blockh) takes the coordinates, width, and height of target rectangle that it is colliding with.

TAGS

example
rectangle
collision