containsLocalPoint method

  1. @override
bool containsLocalPoint(
  1. Vector2 point
)
inherited

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

Implementation

@override
bool containsLocalPoint(Vector2 point) {
  return point.x >= 0 &&
      point.y >= 0 &&
      point.x < canvasSize.x &&
      point.y < canvasSize.y;
}