clockwork-city/prefabs/game_camera.gd
duncgibbs cb0c6e18f5
Some checks failed
linting & formatting / build (push) Failing after 22s
creates all initial tiles and buildings
2026-04-15 10:45:43 -05:00

21 lines
567 B
GDScript

extends Camera2D
var is_dragging: bool = false
#func _input(event: InputEvent) -> void:
#if event.is_action_pressed("camera_drag"):
#Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
#is_dragging = true
#elif event.is_action_released("camera_drag"):
#Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
#is_dragging = false
#
#if event.is_action_pressed("zoom_in"):
#zoom *= Vector2(1.25, 1.25)
#elif event.is_action_pressed("zoom_out"):
#zoom *= Vector2(0.75, 0.75)
#
#if is_dragging:
#if event is InputEventMouseMotion:
#position = lerp(position, event.screen_velocity, 0.01)