@tool extends Control # Maps from world coordinate space to the board size func _process(_delta: float) -> void: var board_screen_size = self.get_rect() %World.scale = Vector2(board_screen_size.size.x / Globals.SERVER_SIZE.x, board_screen_size.size.y / Globals.SERVER_SIZE.y) func get_world() -> Node2D: return %World