trenches/godot/boot.tscn

43 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-12-09 22:55:11 +00:00
[gd_scene load_steps=6 format=3 uid="uid://c2kiuk2yxdlfr"]
2024-11-26 23:41:39 +00:00
[ext_resource type="PackedScene" uid="uid://1kr3qqan3trk" path="res://objects/player.tscn" id="1_7kr4i"]
2024-12-04 19:55:55 +00:00
[ext_resource type="PackedScene" uid="uid://dm3355tbkvx24" path="res://objects/section_2.tscn" id="2_og5hb"]
2024-12-06 16:12:06 +00:00
[ext_resource type="PackedScene" uid="uid://0fykl1mw3c12" path="res://objects/enemy.tscn" id="3_ppe0x"]
2024-12-09 22:55:11 +00:00
[sub_resource type="GDScript" id="GDScript_peyat"]
script/source = "extends Area3D
func _on_body_entered(body: Node3D) -> void:
if body is Player:
$\"../Enemy2\".notice_player(body as Player)
$\"../Enemy\".notice_player(body as Player)
"
[sub_resource type="BoxShape3D" id="BoxShape3D_ggysn"]
size = Vector3(3.69043, 1, 8.0553)
2024-11-26 23:41:39 +00:00
[node name="Boot" type="Node3D"]
2024-12-04 19:55:55 +00:00
[node name="Environment" parent="." instance=ExtResource("2_og5hb")]
2024-12-06 16:12:06 +00:00
[node name="Enemy" parent="." instance=ExtResource("3_ppe0x")]
2024-12-11 17:39:41 +00:00
transform = Transform3D(-0.388047, -3.32609e-06, -0.92164, 7.28825e-07, 1, -3.91574e-06, 0.92164, -2.1912e-06, -0.388047, 5.68389, 0.50111, -12.4121)
2024-12-09 22:55:11 +00:00
[node name="Area3D" type="Area3D" parent="."]
transform = Transform3D(0.734015, 0, -0.679134, 0, 1, 0, 0.679134, 0, 0.734015, 2.09421, 0.536154, -14.1446)
script = SubResource("GDScript_peyat")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, -4.91743e-07, 0, 1, 0, 4.91743e-07, 0, 1, 0, 0, 0)
shape = SubResource("BoxShape3D_ggysn")
2024-12-06 16:12:06 +00:00
[node name="Enemy2" parent="." instance=ExtResource("3_ppe0x")]
2024-12-11 17:39:41 +00:00
update_interval = 0.2
2024-12-11 21:41:16 +00:00
transform = Transform3D(0.470242, 0, -0.882538, 0, 1, 0, 0.882538, 0, 0.470242, 8.22212, 0.536154, -17.0213)
2024-12-06 16:12:06 +00:00
[node name="Player" parent="." instance=ExtResource("1_7kr4i")]
2024-12-07 22:19:50 +00:00
transform = Transform3D(0.0816776, 0, 0.996659, 0, 1, 0, -0.996659, 0, 0.0816776, -2.58966, 0.891191, -2.77265)
2024-12-09 22:55:11 +00:00
[connection signal="body_entered" from="Area3D" to="Area3D" method="_on_body_entered"]