[gd_scene load_steps=7 format=3 uid="uid://drh3sqivyydkj"]

[ext_resource type="Script" path="res://projector/slide/Slide.gd" id="1_pgpic"]
[ext_resource type="PackedScene" uid="uid://dogtm6fdbp3wl" path="res://common/components/gdedit/GdScriptEdit.tscn" id="3_3pelu"]
[ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_agrvb"]
[ext_resource type="Texture2D" uid="uid://dhwxa7mwj7lqq" path="res://slides/283/Signals.svg" id="4_okptd"]
[ext_resource type="Texture2D" uid="uid://cs0ev7fsrh2wd" path="res://slides/283/Signal.svg" id="5_15k1w"]
[ext_resource type="PackedScene" uid="uid://b811jddpttnt4" path="res://common/components/subtitle/subtitle.tscn" id="6_t25x4"]

[node name="ParaSignal" type="Node2D"]
script = ExtResource("1_pgpic")

[node name="Title" parent="." instance=ExtResource("3_agrvb")]
offset_left = 815.0
offset_top = 18.0
offset_right = 1852.0
offset_bottom = 186.0
text = "Reliez vos nœuds"

[node name="GdScriptSignalEmit" parent="." instance=ExtResource("3_3pelu")]
offset_left = 31.0
offset_top = 21.0
offset_right = 771.0
offset_bottom = 626.0
text = "class_name Penguin

signal took_off

func _process():
	if linear_velocity.x > 42:
		took_off.emit()"

[node name="SignalSend" type="Sprite2D" parent="."]
modulate = Color(0, 1, 0, 1)
position = Vector2(136, 741)
scale = Vector2(2, 2)
texture = ExtResource("4_okptd")

[node name="GdScriptSignalReceive" parent="." instance=ExtResource("3_3pelu")]
offset_left = 794.0
offset_top = 377.0
offset_right = 1912.0
offset_bottom = 1076.0
text = "class_name Radar

func print_flying_object(name: String):
	print(name, \" is flying!\")

func _on_Penguin_took_off():
	print_flying_object(\"Penguin\")"

[node name="SignalRec" type="Sprite2D" parent="."]
position = Vector2(669, 757)
scale = Vector2(2, 2)
texture = ExtResource("5_15k1w")

[node name="Subtitle" parent="." instance=ExtResource("6_t25x4")]
offset_left = 39.0
offset_top = 947.0
offset_right = 777.0
offset_bottom = 1078.0
text = "Penguin is flying!"
horizontal_alignment = 2