91 lines
3.2 KiB
Text
91 lines
3.2 KiB
Text
[gd_scene load_steps=8 format=3 uid="uid://trg7ag3dqr2l"]
|
|
|
|
[ext_resource type="Script" uid="uid://8kpvuurr5h5n" path="res://Towers/Tower.gd" id="1_egfuc"]
|
|
[ext_resource type="Texture2D" uid="uid://bn6ikwol6x8r0" path="res://Assets/Characters/Male1.png" id="2_egfuc"]
|
|
[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"]
|
|
|
|
[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"
|
|
|
|
[node name="Tower" type="StaticBody3D"]
|
|
collision_layer = 4
|
|
collision_mask = 4
|
|
script = ExtResource("1_egfuc")
|
|
icone = ExtResource("2_mnaic")
|
|
bio = "Aime se promener dans l'herbe et manger des framboises. Sa petite bouille la rend trop mignonne."
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
[node name="Range" type="Area3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0)
|
|
collision_layer = 4
|
|
collision_mask = 4
|
|
|
|
[node name="Range" type="CollisionShape3D" parent="Range"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.475708, 0)
|
|
|
|
[node name="Aim" type="Marker3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.572046, 0)
|
|
|
|
[node name="AttackCooldown" type="Timer" parent="."]
|
|
wait_time = 1.5
|
|
one_shot = true
|
|
|
|
[node name="EnergyRecoveryCooldown" type="Timer" parent="."]
|
|
wait_time = 0.5
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0.385348, 0)
|
|
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)
|
|
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"
|
|
|
|
[node name="PriceTag" type="Label3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 0)
|
|
billboard = 2
|
|
|
|
[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="AttackCooldown" to="." method="_on_cooldown_timeout"]
|