2025-08-26 19:26:36 +02:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://trg7ag3dqr2l"]
|
2025-03-26 18:55:43 +01:00
|
|
|
|
2025-08-31 23:07:55 +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"]
|
2025-08-26 19:26:36 +02:00
|
|
|
[ext_resource type="Script" uid="uid://bg0x4egeu17qb" path="res://Scripts/Upgrades/TowerUpgrade.gd" id="3_5dr1v"]
|
2025-08-25 23:23:03 +02:00
|
|
|
[ext_resource type="Resource" uid="uid://c6844q5o2gjhd" path="res://Upgrades/Tower/TowerUpgradeMaxEnergy1.tres" id="3_jv31o"]
|
2025-06-05 15:35:19 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bm303ot1ck82l" path="res://UI/energy_bar_3d.tscn" id="3_pajr1"]
|
2025-08-25 23:23:03 +02:00
|
|
|
[ext_resource type="Resource" uid="uid://bus11qw5jg8yo" path="res://Upgrades/Tower/TowerUpgradeMaxEnergy2.tres" id="4_5dr1v"]
|
2025-03-26 18:55:43 +01:00
|
|
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_egfuc"]
|
|
|
|
|
size = Vector3(1, 0.1, 1)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_pajr1"]
|
|
|
|
|
radius = 3.0
|
|
|
|
|
|
|
|
|
|
[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-08-31 21:26:02 +02:00
|
|
|
projectile_damage = 5
|
2025-08-26 19:26:36 +02:00
|
|
|
tower_shop = Array[ExtResource("3_5dr1v")]([ExtResource("3_jv31o"), ExtResource("4_5dr1v")])
|
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.00914001, 0)
|
|
|
|
|
shape = SubResource("BoxShape3D_egfuc")
|
|
|
|
|
|
|
|
|
|
[node name="Range" type="Area3D" parent="."]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.923584, 0)
|
2025-06-05 15:35:19 +02:00
|
|
|
collision_layer = 4
|
|
|
|
|
collision_mask = 4
|
2025-03-26 18:55:43 +01:00
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Range"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.475708, 0)
|
|
|
|
|
shape = SubResource("SphereShape3D_pajr1")
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
[node name="Cooldown" type="Timer" parent="."]
|
|
|
|
|
wait_time = 1.5
|
|
|
|
|
|
2025-06-05 15:35:19 +02:00
|
|
|
[node name="EnergyCooldown" 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
|
|
|
|
|
|
2025-06-05 15:35:19 +02:00
|
|
|
[node name="EnergyBar3D" parent="." instance=ExtResource("3_pajr1")]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.44473, 0)
|
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.06776, 0)
|
|
|
|
|
billboard = 2
|
2025-06-05 15:35:19 +02:00
|
|
|
|
2025-08-25 23:23:03 +02:00
|
|
|
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
2025-03-26 18:55:43 +01:00
|
|
|
[connection signal="body_entered" from="Range" to="." method="_on_range_body_entered"]
|
|
|
|
|
[connection signal="body_exited" from="Range" to="." method="_on_range_body_exited"]
|
|
|
|
|
[connection signal="timeout" from="Cooldown" to="." method="_on_cooldown_timeout"]
|
2025-06-05 15:35:19 +02:00
|
|
|
[connection signal="timeout" from="EnergyCooldown" to="." method="_on_energy_cooldown_timeout"]
|