mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 12:33:47 +00:00
2D Smoothing
This commit is contained in:
parent
4cb902053d
commit
155d210e31
4 changed files with 10 additions and 18 deletions
|
|
@ -1,12 +1,4 @@
|
|||
extends Node2D
|
||||
|
||||
## Whether to use the debug player camera for testing. Otherwise, use the CameraController with non-pixel-perfect settings (hard-coded zoom).
|
||||
@export var use_debug_player_camera: bool = false
|
||||
|
||||
func _ready() -> void:
|
||||
var camera_controller: CameraController = get_tree().get_first_node_in_group("camera_controllers")
|
||||
if use_debug_player_camera:
|
||||
var debug_player_camera: Camera2D = get_tree().get_first_node_in_group("debug_player_camera")
|
||||
camera_controller.enabled = false
|
||||
debug_player_camera.zoom = Vector2(1, 1)
|
||||
debug_player_camera.enabled = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue