worldToScreen method

Vector2 worldToScreen(
  1. Vector2 worldPosition
)

Implementation

Vector2 worldToScreen(Vector2 worldPosition) {
  return (worldPosition - topleft) * zoom;
}