123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- [gd_scene load_steps=4 format=2]
- [ext_resource path="res://fonts/source_code_pro_explanations_bold.tres" type="DynamicFont" id=1]
- [ext_resource path="res://fonts/source_code_pro_explanations.tres" type="DynamicFont" id=2]
- [ext_resource path="res://debug/top_level_ui.gd" type="Script" id=3]
- [node name="Explanations" type="RichTextLabel"]
- anchor_left = 0.0
- anchor_top = 0.0
- anchor_right = 1.0
- anchor_bottom = 1.0
- margin_left = 10.0
- margin_top = -370.0
- margin_right = -10.0
- margin_bottom = -730.0
- rect_pivot_offset = Vector2( 0, 0 )
- rect_clip_content = false
- mouse_filter = 2
- mouse_default_cursor_shape = 0
- size_flags_horizontal = 1
- size_flags_vertical = 4
- custom_fonts/bold_font = ExtResource( 1 )
- custom_fonts/normal_font = ExtResource( 2 )
- bbcode_enabled = true
- bbcode_text = "This example shows how to apply the State programming pattern in GDscript, including Hierarchical States, and a pushdown automaton.
- States are common in games. You can use the pattern to:
- 1. Separate each behavior and transitions between behaviors, thus make scripts shorter and easier to manage
- 2. Respect the Single Responsibility Principle. Each State object represents [b]one[/b] action
- 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.
- You can read more about States in the excellent [url=http://gameprogrammingpatterns.com/state.html]Game Programming Patterns ebook[/url]."
- visible_characters = -1
- percent_visible = 1.0
- meta_underlined = true
- tab_size = 4
- text = "This example shows how to apply the State programming pattern in GDscript, including Hierarchical States, and a pushdown automaton.
- States are common in games. You can use the pattern to:
- 1. Separate each behavior and transitions between behaviors, thus make scripts shorter and easier to manage
- 2. Respect the Single Responsibility Principle. Each State object represents one action
- 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.
- You can read more about States in the excellent Game Programming Patterns ebook."
- scroll_active = true
- scroll_following = false
- selection_enabled = false
- override_selected_font_color = false
- script = ExtResource( 3 )
- _sections_unfolded = [ "BBCode", "custom_fonts" ]
- __meta__ = {
- "_edit_lock_": true
- }
|