extends Control

var line_sound: AudioStream = preload("res://assets/line.wav");

var lines: Array[String] = [
"[code]piix4_smbus 00|00:0||0:14.0: SMBus Host Controller at 0xb00, revision 0[/code]\n",
"[code]piix4_smbus 00||00:0|_0:14.0: Using register 0x02 for SMBus port selection[/code]\n",
"[code]i2c: Successfully instantiated SPD at 0x50[/code]\n",
"[code]i2c: Successfully instantiated SPD at 0x51[/code]\n",
"[code]i2c: Successfully instantiated SPD at 0x52[/code]\n",
"[code]cryptd: max_cpu_qlen set to 1000[/code]\n",
"[code]null: receiving encrypted message. Decrypting![/code]\n",
"[code]null: Listen! The only way we can stop the AI now is to [error][/code]\n",
"[code]null: you're our only hope! There's an executable attached, use it to [error][/code]\n",
"[code]null: receiving remote attachment, saving to ~/antidote.bin[/code]\n",
"[code]piix4_smbus 0000:00:14.0: Auxiliary SMBus Host Controller at 0xb20[/code]\n",
"[code]sp5100_tco: SP5100/SB800 TCO WatchDog Timer Driver[/code]\n",
"[code]sp5100-tco sp5100-tco: Using 0xfeb00000 for watchdog MMIO address[/code]\n",
"[code]LOADING DEMO[pulse freq=1.0 color=#ffffff40 ease=-2.0]...[/pulse][/code]\n",
"[code]-------------------------------------[/code]\n",
"[code]|            AltParty '24               |[/code]\n",
"[code]-------------------------------------[/code]\n",
"\n",
"[code]Minihakkerit 2024[/code]\n",
"[code]Programming & Build tools: XTRA[/code]\n",
"[code]Programming & 3D: GorkaMorka[/code]\n",
"[code]Music & Planning: AUGI[/code]\n",
"[code]Spooling up firewall[pulse freq=1.0 color=#ffffff40 ease=-2.0]........[/pulse][/code]",
"[code] Done![/code]\n",
"[code]Hacking mainframe using secure nmap[pulse freq=1.0 color=#ffffff40 ease=-2.0]...[/pulse][/code]",
"[code] Done![/code]\n",
"[code]Fuel Cells at 50%.[/code]\n",
"[code]ECCOM operational.[/code]\n",
"[code]All systems online.[/code]\n",
"[code]Entry symbol 0x00007f5653fbcdb9 detected! Attaching[pulse freq=1.0 color=#ffffff40 ease=-2.0]...[/pulse][/code]",
]

func _ready() -> void:
	$AnimationPlayer.play("terminal");
	
func next_line() -> void:
	var player: AudioStreamPlayer2D = AudioStreamPlayer2D.new();
	player.connect("finished", func() -> void: player.queue_free());
	player.stream = line_sound;
	add_child(player);
	player.play();
	$Terminal.append_text(lines[0]);
	lines.remove_at(0);
