Guns and Reviving added - Other minor Bugfixes.
This commit is contained in:
parent
8c90c4e744
commit
139e9a5134
11 changed files with 317 additions and 47 deletions
23
scenes/entities/bullet.tscn
Normal file
23
scenes/entities/bullet.tscn
Normal file
|
@ -0,0 +1,23 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bdxw7gc28nv6a"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/entities/bullet.gd" id="1_di2ph"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_gbwh0"]
|
||||
size = Vector3(0.1, 0.1, 0.2)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_26n4t"]
|
||||
size = Vector3(0.1, 0.1, 0.2)
|
||||
|
||||
[node name="Bullet" type="CharacterBody3D"]
|
||||
script = ExtResource("1_di2ph")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_gbwh0")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_26n4t")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
autostart = true
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://dpdxe3muj2o26"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dpdxe3muj2o26"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/entities/player.gd" id="1_r7f2r"]
|
||||
|
||||
|
@ -6,6 +6,12 @@
|
|||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_7frjr"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_flq6p"]
|
||||
size = Vector3(3, 3, 3)
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_1sd1e"]
|
||||
radius = 0.125
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_r7f2r")
|
||||
|
||||
|
@ -18,6 +24,16 @@ shape = SubResource("CapsuleShape3D_7frjr")
|
|||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
|
||||
[node name="InteractDialog" type="Label" parent="."]
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 23.0
|
||||
grow_horizontal = 2
|
||||
size_flags_horizontal = 4
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
|
@ -28,3 +44,13 @@ pixel_size = 0.01
|
|||
billboard = 1
|
||||
no_depth_test = true
|
||||
text = "SamplePlayer"
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("BoxShape3D_flq6p")
|
||||
|
||||
[node name="Gun" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0.625, 0, -0.5)
|
||||
visible = false
|
||||
mesh = SubResource("CapsuleMesh_1sd1e")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue