ParaSignal.tscn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [gd_scene load_steps=7 format=3 uid="uid://drh3sqivyydkj"]
  2. [ext_resource type="Script" path="res://projector/slide/Slide.gd" id="1_pgpic"]
  3. [ext_resource type="PackedScene" uid="uid://dogtm6fdbp3wl" path="res://common/components/gdedit/GdScriptEdit.tscn" id="3_3pelu"]
  4. [ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_agrvb"]
  5. [ext_resource type="Texture2D" uid="uid://dhwxa7mwj7lqq" path="res://slides/283/Signals.svg" id="4_okptd"]
  6. [ext_resource type="Texture2D" uid="uid://cs0ev7fsrh2wd" path="res://slides/283/Signal.svg" id="5_15k1w"]
  7. [ext_resource type="PackedScene" uid="uid://b811jddpttnt4" path="res://common/components/subtitle/subtitle.tscn" id="6_t25x4"]
  8. [node name="ParaSignal" type="Node2D"]
  9. script = ExtResource("1_pgpic")
  10. [node name="Title" parent="." instance=ExtResource("3_agrvb")]
  11. offset_left = 815.0
  12. offset_top = 18.0
  13. offset_right = 1852.0
  14. offset_bottom = 186.0
  15. text = "Reliez vos nœuds"
  16. [node name="GdScriptSignalEmit" parent="." instance=ExtResource("3_3pelu")]
  17. offset_left = 31.0
  18. offset_top = 21.0
  19. offset_right = 771.0
  20. offset_bottom = 626.0
  21. text = "class_name Penguin
  22. signal took_off
  23. func _process():
  24. if linear_velocity.x > 42:
  25. took_off.emit()"
  26. [node name="SignalSend" type="Sprite2D" parent="."]
  27. modulate = Color(0, 1, 0, 1)
  28. position = Vector2(136, 741)
  29. scale = Vector2(2, 2)
  30. texture = ExtResource("4_okptd")
  31. [node name="GdScriptSignalReceive" parent="." instance=ExtResource("3_3pelu")]
  32. offset_left = 794.0
  33. offset_top = 377.0
  34. offset_right = 1912.0
  35. offset_bottom = 1076.0
  36. text = "class_name Radar
  37. func print_flying_object(name: String):
  38. print(name, \" is flying!\")
  39. func _on_Penguin_took_off():
  40. print_flying_object(\"Penguin\")"
  41. [node name="SignalRec" type="Sprite2D" parent="."]
  42. position = Vector2(669, 757)
  43. scale = Vector2(2, 2)
  44. texture = ExtResource("5_15k1w")
  45. [node name="Subtitle" parent="." instance=ExtResource("6_t25x4")]
  46. offset_left = 39.0
  47. offset_top = 947.0
  48. offset_right = 777.0
  49. offset_bottom = 1078.0
  50. text = "Penguin is flying!"
  51. horizontal_alignment = 2