This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Camera2D | |
# Note: Limit smoothing and position smoothing must be disabled | |
const V2_2: Vector2 = Vector2.ONE * 2 | |
const PAN_SPEED: int = 2000 | |
const PAN_SMOOTHING: int = 8 | |
# How far from the edge of the screen panning starts (% of screen size) | |
const EDGE_PAN_THRESHOLD_MIN: Vector2 = Vector2(0.06, 0.12) |