Files
NeonCollapse/game/effects/code_line.gd
T
2026-06-30 13:45:50 +03:00

14 lines
274 B
GDScript

class_name CodeLine
extends Parallax2D
const WIDTH = 11696
const MIN_SCROLL_SPEED = 500
const MAX_SCROLL_SPEED = 1000
func _ready() -> void:
repeat_size.x = WIDTH
scroll_offset.x = randi_range(0, WIDTH)
autoscroll.x = -randi_range(MIN_SCROLL_SPEED, MAX_SCROLL_SPEED)