forked from 2121578/gai-ca2
18 lines
484 B
GDScript
18 lines
484 B
GDScript
class_name GameManager
|
|
extends Node
|
|
|
|
@onready var world: World = $Tileset
|
|
@onready var player: PlayerManager = $PlayerManager
|
|
@onready var camera: Camera2D = $Camera2D
|
|
|
|
func _ready() -> void:
|
|
pass
|
|
|
|
func _process(delta: float) -> void:
|
|
if Input.is_action_just_pressed("key_1"):
|
|
camera.go_to_zooming(Vector2(-100, -50), 1.5)
|
|
if Input.is_action_just_pressed("key_2"):
|
|
camera.go_to_zooming(Vector2(200, 100), 0.4)
|
|
if Input.is_action_just_pressed("key_9"):
|
|
camera.print_config()
|