|
1 | | -[gd_scene load_steps=45 format=3 uid="uid://da28ei7q3d34p"] |
| 1 | +[gd_scene load_steps=34 format=3 uid="uid://da28ei7q3d34p"] |
2 | 2 |
|
3 | 3 | [ext_resource type="Texture2D" uid="uid://dtref83nk0xpi" path="res://game-06/graphics/alan-labisch-NJpQ85eQJDE-unsplash.jpg" id="1_1fkef"] |
4 | 4 | [ext_resource type="PackedScene" uid="uid://fvdldxg5au17" path="res://game-06/coin.tscn" id="2_2m1wf"] |
|
11 | 11 | [ext_resource type="Script" path="res://addons/block_code/serialization/block_serialization.gd" id="8_an3ek"] |
12 | 12 | [ext_resource type="Script" path="res://addons/block_code/serialization/block_script_serialization.gd" id="9_a8xal"] |
13 | 13 | [ext_resource type="PackedScene" uid="uid://c6umuob7nsko3" path="res://game-06/obstacle.tscn" id="10_0r6ub"] |
| 14 | +[ext_resource type="PackedScene" uid="uid://8c82g1tm467r" path="res://game-06/delete_zone.tscn" id="10_alyif"] |
14 | 15 | [ext_resource type="Script" path="res://addons/block_code/code_generation/variable_definition.gd" id="10_pjdut"] |
15 | 16 | [ext_resource type="Script" path="res://addons/block_code/simple_spawner/simple_spawner.gd" id="13_jo5u2"] |
16 | 17 |
|
@@ -76,94 +77,6 @@ func stop_music(): |
76 | 77 | " |
77 | 78 | version = 0 |
78 | 79 |
|
79 | | -[sub_resource type="RectangleShape2D" id="RectangleShape2D_a01j5"] |
80 | | -size = Vector2(63, 572) |
81 | | - |
82 | | -[sub_resource type="Resource" id="Resource_mk0vj"] |
83 | | -script = ExtResource("8_4ctxh") |
84 | | -name = &"area2d_on_entered:something" |
85 | | -arguments = {} |
86 | | - |
87 | | -[sub_resource type="Resource" id="Resource_fmqtw"] |
88 | | -script = ExtResource("8_4ctxh") |
89 | | -name = &"is_node_in_group" |
90 | | -arguments = { |
91 | | -"group": "obstacles", |
92 | | -"node": SubResource("Resource_mk0vj") |
93 | | -} |
94 | | - |
95 | | -[sub_resource type="Resource" id="Resource_g2hwt"] |
96 | | -script = ExtResource("8_4ctxh") |
97 | | -name = &"area2d_on_entered:something" |
98 | | -arguments = {} |
99 | | - |
100 | | -[sub_resource type="Resource" id="Resource_42fs8"] |
101 | | -script = ExtResource("8_4ctxh") |
102 | | -name = &"is_node_in_group" |
103 | | -arguments = { |
104 | | -"group": "coins", |
105 | | -"node": SubResource("Resource_g2hwt") |
106 | | -} |
107 | | - |
108 | | -[sub_resource type="Resource" id="Resource_udbj4"] |
109 | | -script = ExtResource("8_4ctxh") |
110 | | -name = &"or" |
111 | | -arguments = { |
112 | | -"bool1": SubResource("Resource_fmqtw"), |
113 | | -"bool2": SubResource("Resource_42fs8") |
114 | | -} |
115 | | - |
116 | | -[sub_resource type="Resource" id="Resource_eh3b3"] |
117 | | -script = ExtResource("8_4ctxh") |
118 | | -name = &"area2d_on_entered:something" |
119 | | -arguments = {} |
120 | | - |
121 | | -[sub_resource type="Resource" id="Resource_wyh2h"] |
122 | | -script = ExtResource("8_an3ek") |
123 | | -name = &"queue_free_node" |
124 | | -children = Array[ExtResource("8_an3ek")]([]) |
125 | | -arguments = { |
126 | | -"node": SubResource("Resource_eh3b3") |
127 | | -} |
128 | | - |
129 | | -[sub_resource type="Resource" id="Resource_ylq2w"] |
130 | | -script = ExtResource("8_an3ek") |
131 | | -name = &"if" |
132 | | -children = Array[ExtResource("8_an3ek")]([SubResource("Resource_wyh2h")]) |
133 | | -arguments = { |
134 | | -"condition": SubResource("Resource_udbj4") |
135 | | -} |
136 | | - |
137 | | -[sub_resource type="Resource" id="Resource_8c3wf"] |
138 | | -script = ExtResource("8_an3ek") |
139 | | -name = &"area2d_on_entered" |
140 | | -children = Array[ExtResource("8_an3ek")]([SubResource("Resource_ylq2w")]) |
141 | | -arguments = {} |
142 | | - |
143 | | -[sub_resource type="Resource" id="Resource_fnhl3"] |
144 | | -script = ExtResource("7_8cvv3") |
145 | | -root = SubResource("Resource_8c3wf") |
146 | | -canvas_position = Vector2(25, 50) |
147 | | - |
148 | | -[sub_resource type="Resource" id="Resource_acnid"] |
149 | | -script = ExtResource("9_a8xal") |
150 | | -script_inherits = "Area2D" |
151 | | -block_serialization_trees = Array[ExtResource("7_8cvv3")]([SubResource("Resource_fnhl3")]) |
152 | | -variables = Array[ExtResource("10_pjdut")]([]) |
153 | | -generated_script = "extends Area2D |
154 | | -
|
155 | | -
|
156 | | -func _init(): |
157 | | - body_entered.connect(_on_body_entered) |
158 | | -
|
159 | | -func _on_body_entered(something: Node2D): |
160 | | -
|
161 | | - if (((something).is_in_group('obstacles')) or ((something).is_in_group('coins'))): |
162 | | - (something).queue_free() |
163 | | -
|
164 | | -" |
165 | | -version = 0 |
166 | | - |
167 | 80 | [sub_resource type="Resource" id="Resource_6746h"] |
168 | 81 | script = ExtResource("8_an3ek") |
169 | 82 | name = &"simplespawner_start_spawning" |
@@ -277,16 +190,7 @@ stream = ExtResource("6_2umo5") |
277 | 190 | script = ExtResource("6_by3km") |
278 | 191 | block_script = SubResource("Resource_l8ekv") |
279 | 192 |
|
280 | | -[node name="Deadzone" type="Area2D" parent="."] |
281 | | -position = Vector2(-72, 0) |
282 | | - |
283 | | -[node name="CollisionShape2D" type="CollisionShape2D" parent="Deadzone"] |
284 | | -position = Vector2(-32, 276) |
285 | | -shape = SubResource("RectangleShape2D_a01j5") |
286 | | - |
287 | | -[node name="BlockCode" type="Node" parent="Deadzone"] |
288 | | -script = ExtResource("6_by3km") |
289 | | -block_script = SubResource("Resource_acnid") |
| 193 | +[node name="DeleteZone" parent="." instance=ExtResource("10_alyif")] |
290 | 194 |
|
291 | 195 | [node name="SimpleSpawner" type="Node2D" parent="."] |
292 | 196 | position = Vector2(1000, 275) |
|
0 commit comments