started work on arrows

This commit is contained in:
derek
2025-06-26 12:18:02 -05:00
parent e1b09df8f4
commit f7d3476a56
13 changed files with 150 additions and 4 deletions

View File

@@ -5,7 +5,6 @@
[ext_resource type="Theme" uid="uid://bey4nvrdo2vy" path="res://Prefabs/DefaultTheme.tres" id="3_8uhk6"]
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_ocbkm"]
dof_blur_far_enabled = true
dof_blur_far_distance = 15.0
dof_blur_near_enabled = true
dof_blur_near_distance = 6.0

99
Prefabs/arrow.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=17 format=3 uid="uid://bacgd5lmvaxea"]
[gd_scene load_steps=19 format=3 uid="uid://bacgd5lmvaxea"]
[ext_resource type="Script" uid="uid://bcgt64gerg8pv" path="res://Scripts/player.gd" id="1_5wxv7"]
[ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_y6xdh"]
@@ -6,7 +6,9 @@
[ext_resource type="Script" uid="uid://c2xwiexy5b3b3" path="res://Scripts/player_attack.gd" id="3_knrd4"]
[ext_resource type="Script" uid="uid://wnisqyoyai2h" path="res://Scripts/player_on_floor.gd" id="4_hck1p"]
[ext_resource type="Script" uid="uid://dhnl0penaqfkx" path="res://Scripts/player_dodge_roll.gd" id="5_hck1p"]
[ext_resource type="Script" uid="uid://255h63wdkwpv" path="res://Scripts/ranged_attack.gd" id="6_08u7w"]
[ext_resource type="PackedScene" uid="uid://b12w4ut17srje" path="res://Assets/Models/Character1.blend" id="7_juxdh"]
[ext_resource type="PackedScene" uid="uid://bxye0cuxw1mbr" path="res://Prefabs/arrow.tscn" id="7_kgmex"]
[ext_resource type="PackedScene" uid="uid://b4c4cu400yrgt" path="res://Assets/Models/SwordCursor.blend" id="8_4qbli"]
[sub_resource type="BoxMesh" id="BoxMesh_5wxv7"]
@@ -87,6 +89,8 @@ _data = {
radius = 2.5
[node name="Player" type="CharacterBody3D"]
collision_layer = 4
collision_mask = 5
script = ExtResource("1_5wxv7")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
@@ -108,6 +112,10 @@ move_speed = 7.0
[node name="Dodge Roll" type="Node" parent="State Machine"]
script = ExtResource("5_hck1p")
[node name="Ranged Attack" type="Node" parent="State Machine"]
script = ExtResource("6_08u7w")
fired_object = ExtResource("7_kgmex")
[node name="Body" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0.0537765)
material_override = ExtResource("1_y6xdh")