ParaCallback.tscn 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [gd_scene load_steps=5 format=3 uid="uid://cwn31ttjrraci"]
  2. [ext_resource type="Script" path="res://addons/slide_show/projector/slide/Slide.gd" id="1_tzxtk"]
  3. [ext_resource type="Texture2D" uid="uid://1tra3dik14uq" path="res://slides/282/AudioListener2D.svg" id="2_xo4iv"]
  4. [ext_resource type="PackedScene" uid="uid://bvrtmyq4g1qes" path="res://common/components/title/title.tscn" id="3_aevos"]
  5. [sub_resource type="CodeHighlighter" id="CodeHighlighter_2654d"]
  6. number_color = Color(0.803922, 0, 0.803922, 1)
  7. symbol_color = Color(0, 0, 1, 1)
  8. function_color = Color(0, 0.615686, 0, 1)
  9. member_variable_color = Color(0.8, 0.5, 0, 1)
  10. keyword_colors = {
  11. "InputEvent": Color(0, 0.4, 0, 1),
  12. "RigidBody2D": Color(0, 0.4, 0, 1),
  13. "String": Color(0, 0.4, 0, 1),
  14. "Vector2": Color(0, 0.4, 0, 1),
  15. "and": Color(1, 0, 0, 1),
  16. "bool": Color(1, 0, 0, 1),
  17. "class": Color(1, 0, 0, 1),
  18. "class_name": Color(1, 0, 0, 1),
  19. "extends": Color(1, 0, 0, 1),
  20. "float": Color(1, 0, 0, 1),
  21. "for": Color(1, 0, 0, 1),
  22. "func": Color(1, 0, 0, 1),
  23. "if": Color(1, 0, 0, 1),
  24. "in": Color(1, 0, 0, 1),
  25. "int": Color(1, 0, 0, 1),
  26. "return": Color(1, 0, 0, 1),
  27. "signal": Color(1, 0, 0, 1),
  28. "var": Color(1, 0, 0, 1)
  29. }
  30. [node name="ParaCallback" type="Node2D"]
  31. script = ExtResource("1_tzxtk")
  32. [node name="Sprite2D" type="Sprite2D" parent="."]
  33. position = Vector2(1684, 528)
  34. scale = Vector2(2, 2)
  35. texture = ExtResource("2_xo4iv")
  36. [node name="Title" parent="." instance=ExtResource("3_aevos")]
  37. offset_left = 85.0
  38. offset_top = 26.0
  39. offset_right = 1847.0
  40. offset_bottom = 194.0
  41. text = "Écoutez votre moteur"
  42. [node name="GdScriptEdit" type="CodeEdit" parent="."]
  43. offset_left = 45.0
  44. offset_top = 289.0
  45. offset_right = 1469.0
  46. offset_bottom = 1036.0
  47. theme_override_colors/background_color = Color(1, 1, 1, 1)
  48. theme_override_colors/font_color = Color(0, 0, 0, 1)
  49. theme_override_font_sizes/font_size = 46
  50. text = "func _ready() -> void:
  51. speed = 0
  52. func _physics_process(delta: float) -> void:
  53. apply_force(Vector2.RIGHT)
  54. func _unhandled_key_input(event: InputEvent) -> void:
  55. if event.is_action(\"ui_accept\") and event.is_pressed():
  56. apply_impulse(Vector2.UP)
  57. get_viewport().set_input_as_handled()"
  58. deselect_on_focus_loss_enabled = false
  59. virtual_keyboard_enabled = false
  60. syntax_highlighter = SubResource("CodeHighlighter_2654d")
  61. gutters_draw_line_numbers = true
  62. indent_use_spaces = true