20 lines
688 B
GDScript
20 lines
688 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:
|
|
player.game_manager = self
|
|
|
|
func _process(delta: float) -> void:
|
|
if Input.is_action_just_pressed("key_1"):
|
|
camera.go_to_zooming(Vector2(517.469787597656, 289.846008300781), 1.771561)
|
|
if Input.is_action_just_pressed("key_2"):
|
|
camera.go_to_zooming(Vector2(789.883972167969, 450.102813720703), 0.56015348434448)
|
|
if Input.is_action_just_pressed("key_9"):
|
|
camera.print_config()
|
|
if Input.is_action_just_pressed("force_game_tick"):
|
|
player.game_tick()
|