TowerDefense/Towers/tower.tscn

98 lines
3.3 KiB
Text
Raw Normal View History

[gd_scene load_steps=9 format=3 uid="uid://trg7ag3dqr2l"]
2025-03-26 18:55:43 +01:00
2025-09-03 18:39:58 +02:00
[ext_resource type="Script" uid="uid://8kpvuurr5h5n" path="res://Towers/Tower.gd" id="1_egfuc"]
2025-04-02 18:02:13 +02:00
[ext_resource type="Texture2D" uid="uid://bn6ikwol6x8r0" path="res://Assets/Characters/Male1.png" id="2_egfuc"]
2025-08-25 23:42:09 +02:00
[ext_resource type="Texture2D" uid="uid://uptdcefxlv4c" path="res://Assets/Icones/ppdf_bio_image_placeholder_2.png" id="2_mnaic"]
[ext_resource type="Script" uid="uid://blnmjxmusrsa7" path="res://UI/GameStyleBoxFlat.gd" id="8_5dr1v"]
2025-03-26 18:55:43 +01:00
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ynmsb"]
radius = 0.15
height = 0.5
[sub_resource type="ViewportTexture" id="ViewportTexture_jv31o"]
viewport_path = NodePath("EnergyBar3D/SubViewport")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jv31o"]
bg_color = Color(0.341, 0.082, 0.094, 0)
script = ExtResource("8_5dr1v")
color = 3
metadata/_custom_type_script = "uid://blnmjxmusrsa7"
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5dr1v"]
bg_color = Color(0.921569, 0.890196, 0.415686, 1)
script = ExtResource("8_5dr1v")
color = 1
metadata/_custom_type_script = "uid://blnmjxmusrsa7"
2025-03-26 18:55:43 +01:00
[node name="Tower" type="StaticBody3D"]
2025-04-02 18:02:13 +02:00
collision_layer = 4
collision_mask = 4
2025-03-26 18:55:43 +01:00
script = ExtResource("1_egfuc")
2025-08-25 23:42:09 +02:00
icone = ExtResource("2_mnaic")
bio = "Aime se promener dans l'herbe et manger des framboises. Sa petite bouille la rend trop mignonne."
2025-03-26 18:55:43 +01:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
shape = SubResource("CapsuleShape3D_ynmsb")
2025-03-26 18:55:43 +01:00
[node name="Range" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0)
collision_layer = 2
collision_mask = 2
2025-03-26 18:55:43 +01:00
[node name="Range" type="CollisionShape3D" parent="Range"]
2025-03-26 18:55:43 +01:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.475708, 0)
[node name="Aim" type="Marker3D" parent="."]
2025-08-21 18:52:45 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.572046, 0)
2025-03-26 18:55:43 +01:00
2025-09-04 02:54:37 +02:00
[node name="AttackCooldown" type="Timer" parent="."]
2025-03-26 18:55:43 +01:00
wait_time = 1.5
2025-09-04 02:54:37 +02:00
one_shot = true
2025-03-26 18:55:43 +01:00
2025-09-04 02:54:37 +02:00
[node name="EnergyRecoveryCooldown" type="Timer" parent="."]
wait_time = 0.5
2025-04-02 18:02:13 +02:00
[node name="Sprite3D" type="Sprite3D" parent="."]
2025-08-21 18:52:45 +02:00
transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0.385348, 0)
2025-04-02 18:02:13 +02:00
billboard = 2
texture = ExtResource("2_egfuc")
hframes = 8
vframes = 12
frame = 75
[node name="EnergyBar3D" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
visible = false
billboard = 2
texture = SubResource("ViewportTexture_jv31o")
[node name="SubViewport" type="SubViewport" parent="EnergyBar3D"]
size = Vector2i(72, 10)
size_2d_override_stretch = true
[node name="EnergyBar2D" type="ProgressBar" parent="EnergyBar3D/SubViewport"]
custom_minimum_size = Vector2(68, 6)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -34.0
offset_top = -3.0
offset_right = 34.0
offset_bottom = 3.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/background = SubResource("StyleBoxFlat_jv31o")
theme_override_styles/fill = SubResource("StyleBoxFlat_5dr1v")
show_percentage = false
metadata/_custom_type_script = "uid://blnmjxmusrsa7"
2025-08-27 13:27:32 +02:00
[node name="PriceTag" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
2025-08-27 13:27:32 +02:00
billboard = 2
[connection signal="body_entered" from="Range" to="." method="onBodyEntered"]
[connection signal="body_exited" from="Range" to="." method="onBodyExited"]