Add initial resource and presenter classes for game entities and effects

This commit is contained in:
2025-10-13 12:11:50 +02:00
commit ad3e631d8c
75 changed files with 1423 additions and 0 deletions

13
Objects/bullet.tscn Normal file
View File

@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://i84teqsbrmff"]
[ext_resource type="Script" uid="uid://dl2awoy0hyruh" path="res://Code/Presenters/TransformPresenterComponent.cs" id="1_ktj6t"]
[sub_resource type="SphereMesh" id="SphereMesh_48nvk"]
radius = 0.1
height = 0.1
radial_segments = 8
rings = 8
[node name="Bullet" type="MeshInstance3D"]
mesh = SubResource("SphereMesh_48nvk")
script = ExtResource("1_ktj6t")

28
Objects/player.tscn Normal file
View File

@@ -0,0 +1,28 @@
[gd_scene load_steps=5 format=3 uid="uid://c576jiewfs5gj"]
[ext_resource type="Script" uid="uid://hkiny1ftv4r7" path="res://Code/Presenters/CharacterBody3DPresenter.cs" id="2_3y5cq"]
[ext_resource type="Script" uid="uid://crx03e8buoni3" path="res://Code/Presenters/CameraPresenterComponent.cs" id="3_2i4gt"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_y0qk3"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3y5cq"]
[node name="Player" type="CharacterBody3D"]
script = ExtResource("2_3y5cq")
metadata/_custom_type_script = "uid://hkiny1ftv4r7"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.0028362, 0)
shape = SubResource("CapsuleShape3D_y0qk3")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.0028362, 0)
visible = false
mesh = SubResource("CapsuleMesh_3y5cq")
skeleton = NodePath("")
[node name="CameraPivot" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5901337, 0)
script = ExtResource("3_2i4gt")
[node name="Camera3D" type="Camera3D" parent="CameraPivot"]