tp work and first steep for menu
This commit is contained in:
@@ -1,57 +1,80 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://d1ugwu6dqomtg"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://d1ugwu6dqomtg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6422kdu30lo4" path="res://script/wall.gd" id="1_xxgf6"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oh6kn"]
|
||||
size = Vector2(20, 640)
|
||||
size = Vector2(40, 680)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xxgf6"]
|
||||
size = Vector2(640, 20)
|
||||
size = Vector2(680, 40)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_80ewm"]
|
||||
size = Vector2(630, 630)
|
||||
|
||||
[node name="wall" type="Node2D"]
|
||||
script = ExtResource("1_xxgf6")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
offset_right = 640.0
|
||||
offset_bottom = 640.0
|
||||
offset_left = -320.0
|
||||
offset_top = -320.0
|
||||
offset_right = 320.0
|
||||
offset_bottom = 320.0
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="wall" type="Area2D" parent="."]
|
||||
position = Vector2(-320, -320)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall"]
|
||||
position = Vector2(0, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="wall"]
|
||||
position = Vector2(640, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="wall"]
|
||||
position = Vector2(320, 0)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="wall"]
|
||||
position = Vector2(320, 640)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
[node name="wall_destroy" type="Area2D" parent="."]
|
||||
position = Vector2(-969, -963)
|
||||
scale = Vector2(3, 3)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="wall_destroy"]
|
||||
position = Vector2(0, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="wall_destroy"]
|
||||
position = Vector2(640, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="wall_destroy"]
|
||||
position = Vector2(320, 0)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="wall_destroy"]
|
||||
position = Vector2(320, 640)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[node name="in" type="Area2D" parent="."]
|
||||
position = Vector2(-320, -320)
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="in"]
|
||||
position = Vector2(320, 320)
|
||||
shape = SubResource("RectangleShape2D_80ewm")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(640, 320)
|
||||
shape = SubResource("RectangleShape2D_oh6kn")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(320, 0)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(320, 640)
|
||||
shape = SubResource("RectangleShape2D_xxgf6")
|
||||
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]
|
||||
[connection signal="body_entered" from="wall" to="." method="_on_area_2d_body_entered"]
|
||||
[connection signal="body_exited" from="wall" to="." method="_on_area_2d_body_exited"]
|
||||
[connection signal="body_entered" from="wall_destroy" to="." method="_on_wall_destroy_body_entered"]
|
||||
[connection signal="body_entered" from="in" to="." method="_is_in_true"]
|
||||
[connection signal="body_exited" from="in" to="." method="_is_in_false"]
|
||||
|
||||
Reference in New Issue
Block a user