ParaSignal.tscn 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=6 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. [node name="ParaSignal" type="Node2D"]
  8. script = ExtResource("1_pgpic")
  9. [node name="Title" parent="." instance=ExtResource("3_agrvb")]
  10. offset_left = 815.0
  11. offset_top = 18.0
  12. offset_right = 1852.0
  13. offset_bottom = 186.0
  14. text = "Reliez vos nœuds"
  15. [node name="GdScriptSignalEmit" parent="." instance=ExtResource("3_3pelu")]
  16. offset_left = 28.0
  17. offset_top = 63.0
  18. offset_right = 768.0
  19. offset_bottom = 626.0
  20. text = "class_name Penguin
  21. signal jdll_reached
  22. func _process():
  23. if is_at_jdll(position):
  24. jdll_reached.emit()"
  25. [node name="SignalSend" type="Sprite2D" parent="."]
  26. modulate = Color(0, 1, 0, 1)
  27. position = Vector2(139, 769)
  28. scale = Vector2(2, 2)
  29. texture = ExtResource("4_okptd")
  30. [node name="GdScriptSignalReceive" parent="." instance=ExtResource("3_3pelu")]
  31. offset_left = 794.0
  32. offset_top = 377.0
  33. offset_right = 1912.0
  34. offset_bottom = 1076.0
  35. text = "class_name Talker
  36. const talk_room_pos = Vector3(14.0, 53.2, 10.9)
  37. func go_to_the_talk_room():
  38. position = talk_room_pos
  39. func _on_Penguin_jdll_reached():
  40. go_to_the_talk_room()"
  41. [node name="SignalRec" type="Sprite2D" parent="."]
  42. position = Vector2(652, 898)
  43. scale = Vector2(2, 2)
  44. texture = ExtResource("5_15k1w")