road-rage-tank/player/player.tscn
2026-03-04 14:52:35 -05:00

123 lines
4.2 KiB
Text

[gd_scene format=3 uid="uid://cv5p3w87nk0wn"]
[ext_resource type="Script" uid="uid://dhin7ux2njfja" path="res://player/player.gd" id="1_4flbx"]
[ext_resource type="Script" uid="uid://fe3m1ax0w2lh" path="res://player/player_hud.gd" id="2_g6k8r"]
[ext_resource type="Script" uid="uid://cjdxibg3pnans" path="res://player/score_label.gd" id="2_onrkg"]
[ext_resource type="Script" uid="uid://fv1n5noqdfg2" path="res://player/guns/basic_gun.gd" id="3_g1dw6"]
[ext_resource type="Script" uid="uid://b87cyvu2m5b1k" path="res://player/guns/mini_gun.gd" id="4_yw30f"]
[ext_resource type="Script" uid="uid://ftrngxkkycl1" path="res://player/guns/mortar.gd" id="5_qjkh3"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_onrkg"]
[sub_resource type="BoxMesh" id="BoxMesh_onrkg"]
[sub_resource type="BoxShape3D" id="BoxShape3D_i3pqv"]
[sub_resource type="BoxMesh" id="BoxMesh_hqtel"]
size = Vector3(2, 0.1, 0.1)
[sub_resource type="SphereMesh" id="SphereMesh_4flbx"]
[node name="Player" type="CharacterBody3D" unique_id=1904432250 node_paths=PackedStringArray("guns")]
collision_layer = 2
collision_mask = 13
script = ExtResource("1_4flbx")
shake_noise = SubResource("FastNoiseLite_onrkg")
guns = [NodePath("Guns/BasicGun"), NodePath("Guns/MiniGun"), NodePath("Guns/Mortar")]
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=204505475]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
mesh = SubResource("BoxMesh_onrkg")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=918462062]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("BoxShape3D_i3pqv")
[node name="Camera3D" type="Camera3D" parent="." unique_id=253280781]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 0.53349644, 0.84580237, 0, -0.84580237, 0.53349644, 0, 20.150661, 11.874705)
[node name="Cannon" type="Node3D" parent="." unique_id=985210791]
unique_name_in_owner = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="Cannon" unique_id=1149215568]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0.75, 0)
mesh = SubResource("BoxMesh_hqtel")
[node name="Reticle" type="MeshInstance3D" parent="." unique_id=242722222]
unique_name_in_owner = true
visible = false
mesh = SubResource("SphereMesh_4flbx")
[node name="PlayerHUD" type="CanvasLayer" parent="." unique_id=1676328708]
script = ExtResource("2_g6k8r")
[node name="ScoreLabel" type="Label" parent="PlayerHUD" unique_id=1108751125]
offset_right = 40.0
offset_bottom = 23.0
theme_override_font_sizes/font_size = 48
text = "Score: %s"
script = ExtResource("2_onrkg")
[node name="HealthLabel" type="Label" parent="PlayerHUD" unique_id=1653322479]
unique_name_in_owner = true
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 67.0
grow_horizontal = 2
size_flags_horizontal = 10
theme_override_font_sizes/font_size = 48
text = "Health: 2"
horizontal_alignment = 2
[node name="StaminaBar" type="ProgressBar" parent="PlayerHUD" unique_id=961689130]
unique_name_in_owner = true
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -162.0
offset_top = -27.0
offset_right = 162.0
grow_horizontal = 2
grow_vertical = 0
max_value = 1.0
show_percentage = false
[node name="Label" type="Label" parent="PlayerHUD/StaminaBar" unique_id=1238654404]
layout_mode = 0
offset_left = 132.0
offset_top = -27.0
offset_right = 196.0
offset_bottom = -4.0
text = "Stamina"
[node name="GunLabel" type="Label" parent="PlayerHUD" unique_id=220052210]
unique_name_in_owner = true
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -23.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 32
text = "BasicGun"
horizontal_alignment = 2
[node name="Guns" type="Node3D" parent="." unique_id=2018109083]
[node name="BasicGun" type="Node3D" parent="Guns" unique_id=1677055720]
unique_name_in_owner = true
script = ExtResource("3_g1dw6")
[node name="MiniGun" type="Node3D" parent="Guns" unique_id=416187827]
unique_name_in_owner = true
script = ExtResource("4_yw30f")
fire_rate = 800.0
[node name="Mortar" type="Node3D" parent="Guns" unique_id=1321220525]
unique_name_in_owner = true
script = ExtResource("5_qjkh3")
fire_rate = 160.0