25.2 Player Controller

Plus other improvements to the dir structure
This commit is contained in:
FoxSpellCaster
2025-12-08 08:27:47 -05:00
parent ae8884fa16
commit 2ca1892fb4
64 changed files with 775 additions and 44 deletions

View File

@@ -0,0 +1,26 @@
[gd_scene load_steps=5 format=3 uid="uid://dpco4vo8rwkq0"]
[ext_resource type="Script" path="res://scripts/player_controller.gd" id="1"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tfo3t"]
albedo_color = Color(0.11764706, 0.4, 0.9607843, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_tfo3t"]
material = SubResource("StandardMaterial3D_tfo3t")
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_tfo3t"]
[node name="playerCharacter" type="Node3D"]
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
script = ExtResource("1")
[node name="MeshInstance3D" type="MeshInstance3D" parent="CharacterBody3D"]
mesh = SubResource("CapsuleMesh_tfo3t")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
shape = SubResource("CapsuleShape3D_tfo3t")
[node name="Camera3D" type="Camera3D" parent="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 0.9659258, 0.25881904, 0, -0.25881904, 0.9659258, 0, 1.3567054, 2)

View File

@@ -0,0 +1,17 @@
[gd_scene load_steps=2 format=3 uid="uid://cn81uqcg16q4b"]
[ext_resource type="Material" uid="uid://b7ve12hakqpdf" path="res://assets/carvedStone.tres" id="1_601x6"]
[node name="skyPrincess" type="Node3D"]
[node name="CSGSphere3D" type="CSGSphere3D" parent="."]
radius = 25.0
radial_segments = 24
rings = 12
material = ExtResource("1_601x6")
[node name="Label3D" type="Label3D" parent="CSGSphere3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30, 0)
pixel_size = 0.05
billboard = 1
text = "SkyPrincess"

File diff suppressed because one or more lines are too long

22
scenes/props/chest.tscn Normal file
View File

@@ -0,0 +1,22 @@
[gd_scene load_steps=3 format=3 uid="uid://b5ah32wouh61i"]
[ext_resource type="Material" uid="uid://c22wyfih5ebfy" path="res://assets/wood.tres" id="1_twpm2"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_twpm2"]
albedo_color = Color(0.8745098, 0.7199755, 0.11372547, 1)
[node name="chest" type="Node3D"]
[node name="CSGBox3D" type="CSGBox3D" parent="."]
use_collision = true
size = Vector3(2, 1, 1)
material = ExtResource("1_twpm2")
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="CSGBox3D"]
transform = Transform3D(-4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 0, 0, 1, 0, 0.50089633, 0)
material = SubResource("StandardMaterial3D_twpm2")
[node name="Label3D" type="Label3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
billboard = 1
text = "Chest"

26
scenes/props/table.tscn Normal file
View File

@@ -0,0 +1,26 @@
[gd_scene load_steps=2 format=3 uid="uid://dsgxat46qwqbn"]
[ext_resource type="Material" uid="uid://c22wyfih5ebfy" path="res://assets/wood.tres" id="1_jd0nb"]
[node name="table" type="Node3D"]
[node name="CSGBox3D" type="CSGBox3D" parent="."]
use_collision = true
material = ExtResource("1_jd0nb")
[node name="CSGBox3D" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.051330745, 0)
operation = 2
size = Vector3(0.8, 0.9, 1)
material = ExtResource("1_jd0nb")
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.051330745, 0)
operation = 2
size = Vector3(1, 0.9, 0.8)
material = ExtResource("1_jd0nb")
[node name="Label3D" type="Label3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
billboard = 1
text = "Table"

9
scenes/ui/ui.tscn Normal file
View File

@@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://d01yomyxft4qt"]
[node name="ui" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2