Explanations.tscn 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. [gd_scene load_steps=4 format=2]
  2. [ext_resource path="res://fonts/source_code_pro_explanations_bold.tres" type="DynamicFont" id=1]
  3. [ext_resource path="res://fonts/source_code_pro_explanations.tres" type="DynamicFont" id=2]
  4. [ext_resource path="res://debug/top_level_ui.gd" type="Script" id=3]
  5. [node name="Explanations" type="RichTextLabel"]
  6. anchor_left = 0.0
  7. anchor_top = 0.0
  8. anchor_right = 1.0
  9. anchor_bottom = 1.0
  10. margin_left = 10.0
  11. margin_top = -370.0
  12. margin_right = -10.0
  13. margin_bottom = -730.0
  14. rect_pivot_offset = Vector2( 0, 0 )
  15. rect_clip_content = false
  16. mouse_filter = 2
  17. mouse_default_cursor_shape = 0
  18. size_flags_horizontal = 1
  19. size_flags_vertical = 4
  20. custom_fonts/bold_font = ExtResource( 1 )
  21. custom_fonts/normal_font = ExtResource( 2 )
  22. bbcode_enabled = true
  23. bbcode_text = "This example shows how to apply the State programming pattern in GDscript, including Hierarchical States, and a pushdown automaton.
  24. States are common in games. You can use the pattern to:
  25. 1. Separate each behavior and transitions between behaviors, thus make scripts shorter and easier to manage
  26. 2. Respect the Single Responsibility Principle. Each State object represents [b]one[/b] action
  27. 3. Improve your code's structure. Look at the scene tree and FileSystem tab: without looking at the code, you'll know what the Player can or cannot do.
  28. You can read more about States in the excellent [url=http://gameprogrammingpatterns.com/state.html]Game Programming Patterns ebook[/url]."
  29. visible_characters = -1
  30. percent_visible = 1.0
  31. meta_underlined = true
  32. tab_size = 4
  33. text = "This example shows how to apply the State programming pattern in GDscript, including Hierarchical States, and a pushdown automaton.
  34. States are common in games. You can use the pattern to:
  35. 1. Separate each behavior and transitions between behaviors, thus make scripts shorter and easier to manage
  36. 2. Respect the Single Responsibility Principle. Each State object represents one action
  37. 3. Improve your code's structure. Look at the scene tree and FileSystem tab: without looking at the code, you'll know what the Player can or cannot do.
  38. You can read more about States in the excellent Game Programming Patterns ebook."
  39. scroll_active = true
  40. scroll_following = false
  41. selection_enabled = false
  42. override_selected_font_color = false
  43. script = ExtResource( 3 )
  44. _sections_unfolded = [ "BBCode", "custom_fonts" ]
  45. __meta__ = {
  46. "_edit_lock_": true
  47. }