containsPoint method

  1. @override
bool containsPoint(
  1. Vector2 p
)
inherited

Whether a point is within the boundaries of the visible part of the game.

Implementation

@override
bool containsPoint(Vector2 p) {
  return p.x > 0 && p.y > 0 && p.x < size.x && p.y < size.y;
}