x',
y', width', and
height' of both sprites are considered
# Is self overlaps (or contains) an other sprite
# `x', `y', `width', and `height' of both sprites are considered
fun overlaps(other: Sprite): Bool
do
return self.right > other.left and self.left < other.right and self.bottom > other.top and self.top < other.bottom
end
lib/scene2d/scene2d.nit:77,2--82,4