129 lines
3.9 KiB
Text
129 lines
3.9 KiB
Text
[gd_scene load_steps=11 format=3 uid="uid://dwx5tcatj35gu"]
|
|
|
|
[ext_resource type="Script" uid="uid://dts8lbivkgsmj" path="res://base/scripts/player/player.gd" id="1_1w3ab"]
|
|
[ext_resource type="Texture2D" uid="uid://cf7avgppv4kfk" path="res://base/assets/sprites/guns/placeholder/static.png" id="2_gt0rj"]
|
|
[ext_resource type="PackedScene" uid="uid://bb6ovrbusyxpi" path="res://base/scenes/weapons/weapon_base.tscn" id="2_ma1q3"]
|
|
[ext_resource type="Script" uid="uid://byhp4pklbjltn" path="res://base/scripts/player/weapon_container.gd" id="3_1w3ab"]
|
|
[ext_resource type="Script" uid="uid://diu6eno2ag6ga" path="res://base/scripts/player/weapon_slot.gd" id="4_gt0rj"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_jjqxs"]
|
|
|
|
[sub_resource type="Animation" id="Animation_gt0rj"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("HUD/Weapon:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_8sdfx"]
|
|
resource_name = "default"
|
|
length = 1.33334
|
|
loop_mode = 1
|
|
step = 0.0166667
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("HUD/Weapon:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.333333, 0.666667, 1, 1.33333),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(16, 32), Vector2(0, 0), Vector2(32, 32), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_juj2l"]
|
|
resource_name = "static"
|
|
step = 0.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("HUD/Weapon:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.00466507),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_juj2l"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_gt0rj"),
|
|
&"default": SubResource("Animation_8sdfx"),
|
|
&"static": SubResource("Animation_juj2l")
|
|
}
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
|
collision_layer = 2
|
|
collision_mask = 19
|
|
platform_wall_layers = 1
|
|
script = ExtResource("1_1w3ab")
|
|
|
|
[node name="Collider" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("CapsuleShape3D_jjqxs")
|
|
|
|
[node name="Camera" type="Camera3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
current = true
|
|
|
|
[node name="HUD" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Weapon" type="TextureRect" parent="HUD"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
texture = ExtResource("2_gt0rj")
|
|
stretch_mode = 6
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="HUD/Weapon"]
|
|
autoplay = "static"
|
|
|
|
[node name="Ammo" type="Label" parent="HUD"]
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -54.0
|
|
offset_top = -23.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
theme_override_font_sizes/font_size = 32
|
|
text = "0/0"
|
|
|
|
[node name="WeaponContainer" type="Node3D" parent="."]
|
|
script = ExtResource("3_1w3ab")
|
|
|
|
[node name="Primary" type="Node3D" parent="WeaponContainer"]
|
|
script = ExtResource("4_gt0rj")
|
|
metadata/_custom_type_script = "uid://diu6eno2ag6ga"
|
|
|
|
[node name="Weapon" parent="WeaponContainer/Primary" instance=ExtResource("2_ma1q3")]
|
|
|
|
[node name="Secondary" type="Node3D" parent="WeaponContainer"]
|
|
script = ExtResource("4_gt0rj")
|
|
metadata/_custom_type_script = "uid://diu6eno2ag6ga"
|
|
|
|
[node name="Tertiary" type="Node3D" parent="WeaponContainer"]
|
|
script = ExtResource("4_gt0rj")
|
|
metadata/_custom_type_script = "uid://diu6eno2ag6ga"
|
|
|
|
[node name="MovementPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_juj2l")
|
|
}
|