placeholder gun assets
This commit is contained in:
parent
667c1b22b2
commit
90b48ccd56
26 changed files with 528 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://d23028pr0jahr"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d23028pr0jahr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bgnb01j1nphhi" path="res://base/scenes/rooms/test.tscn" id="1_sjeh3"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwx5tcatj35gu" path="res://base/scenes/player.tscn" id="2_uxs03"]
|
||||
|
||||
[node name="Game" type="Node3D"]
|
||||
|
||||
[node name="Test Room" parent="." instance=ExtResource("1_sjeh3")]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_uxs03")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.208048, 0)
|
||||
|
|
69
base/scenes/player.tscn
Normal file
69
base/scenes/player.tscn
Normal file
|
@ -0,0 +1,69 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dwx5tcatj35gu"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cf7avgppv4kfk" path="res://base/assets/guns/placeholder/static.png" id="1_7s1wv"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_jjqxs"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ma1q3"]
|
||||
resource_name = "static"
|
||||
length = 0.001
|
||||
step = 0.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [ExtResource("1_7s1wv")]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_i1xqq"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [null]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7ptt8"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_i1xqq"),
|
||||
&"static": SubResource("Animation_ma1q3")
|
||||
}
|
||||
|
||||
[node name="Player" type="RigidBody3D"]
|
||||
|
||||
[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)
|
||||
|
||||
[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
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="HUD/Weapon"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_7ptt8")
|
||||
}
|
||||
autoplay = "static"
|
Loading…
Add table
Add a link
Reference in a new issue