player character has move and dodge

This commit is contained in:
2025-06-23 22:58:24 -05:00
parent 4d27d00b73
commit a2df5e276a
18 changed files with 292 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=25 format=4 uid="uid://dbqyyunvx6fdj"]
[gd_scene load_steps=24 format=4 uid="uid://dbqyyunvx6fdj"]
[ext_resource type="Material" uid="uid://b4rpp31c0dx2m" path="res://Assets/Materials/BasicMat.tres" id="1_8lor2"]
[ext_resource type="PackedScene" uid="uid://hmyrn2pbbhpm" path="res://Prefabs/PlayerCamera.tscn" id="2_qq11w"]
@@ -27,9 +27,6 @@ fog_light_color = Color(0.117, 0.14115, 0.18, 1)
fog_light_energy = 1.65
fog_density = 1.0
[sub_resource type="BoxShape3D" id="BoxShape3D_qq11w"]
size = Vector3(100, 1, 100)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cre2v"]
[sub_resource type="ArrayMesh" id="ArrayMesh_eow34"]
@@ -201,19 +198,11 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_ib0jm")
[node name="Node3D" type="Node3D"]
[node name="TestLevel" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_vab8d")
[node name="StaticBody3D" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.196, 7.041, 1.942)
collision_layer = 128
collision_mask = 128
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
shape = SubResource("BoxShape3D_qq11w")
[node name="Test1" type="Node3D" parent="."]
[node name="Cube_001" type="MeshInstance3D" parent="Test1"]
@@ -272,7 +261,7 @@ metadata/extras = {
}
[node name="Camera3D" parent="." node_paths=PackedStringArray("player") instance=ExtResource("2_qq11w")]
transform = Transform3D(1, 0, 0, 0, 0.25038, 0.968148, 0, -0.968148, 0.25038, 0.196, 7.041, 1.942)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
player = NodePath("../Player")
[node name="OmniLight3D" type="OmniLight3D" parent="."]
@@ -291,7 +280,45 @@ light_color = Color(0.833261, 0.5957, 0.32611, 1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.26995, 0.974748, 4.40131)
light_color = Color(0.833261, 0.5957, 0.32611, 1)
[node name="OmniLight3D5" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.66639, 0.974749, -33.6377)
light_color = Color(0.833261, 0.5957, 0.32611, 1)
[node name="OmniLight3D6" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.90079, 0.974749, -34.0342)
light_color = Color(0.833261, 0.5957, 0.32611, 1)
[node name="OmniLight3D7" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.90218, 0.974748, -25.5942)
light_color = Color(0.833261, 0.5957, 0.32611, 1)
[node name="OmniLight3D8" type="OmniLight3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.26995, 0.974748, -25.5011)
light_color = Color(0.833261, 0.5957, 0.32611, 1)
[node name="PostProcessing" parent="." instance=ExtResource("2_vab8d")]
[node name="Player" parent="." instance=ExtResource("3_hfnh2")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0717504, 0.311536, 0.0210209)
[node name="Blockout" type="Node3D" parent="."]
[node name="CSGBox3D" type="CSGBox3D" parent="Blockout"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.296387, -13.9739)
use_collision = true
size = Vector3(0.328125, 0.407227, 18.4945)
[node name="CSGBox3D4" type="CSGBox3D" parent="Blockout"]
transform = Transform3D(0.888377, 0, 0.459115, 0, 1, 0, -0.459115, 0, 0.888377, -3.97738, -0.296386, -15.7424)
use_collision = true
size = Vector3(0.859375, 0.407227, 18.4945)
[node name="CSGBox3D3" type="CSGBox3D" parent="Blockout"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.296387, -13.9739)
use_collision = true
size = Vector3(0.328125, 0.407227, 18.4945)
[node name="CSGBox3D2" type="CSGBox3D" parent="Blockout"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.296387, -30.2649)
use_collision = true
size = Vector3(20.9199, 0.407227, 14.3326)