Efficient Sprite Collision Detection Using Range Intersection Query