xiandie/scene/ground/parallax_background.gd

13 lines
376 B
GDScript3
Raw Normal View History

2024-12-23 01:29:31 +00:00
extends ParallaxBackground
#
## Called every frame. 'delta' is the elapsed time since the previous frame.
#func _physics_process(delta: float) -> void:
#var x = Input.get_axis("left", "right")
#var y = Input.get_axis("up", "down")
#camera.position.x += delta * x * 1000
#camera.position.y += delta * y * 1000
func _ready() -> void:
layer = GlobalConfig.CANVAS_LAYER_BG