gd: basic weapon and readability refacto

This commit is contained in:
2025-06-06 16:09:39 +02:00
parent bbcc3d0867
commit 579b523a37
15 changed files with 263 additions and 201 deletions

View File

@ -0,0 +1,21 @@
using Godot;
namespace Movementtests.systems;
public partial class WeaponSystem : MeshInstance3D
{
private Node3D _head;
private ShapeCast3D _dashCast3D;
private Camera3D _camera;
private TweenQueueSystem _tweenQueueSystem;
private MantleSystem _mantleSystem;
private MeshInstance3D _dashTarget;
public void Init(Node3D head, Camera3D camera, TweenQueueSystem tweenQueueSystem)
{
_head = head;
_camera = camera;
_tweenQueueSystem = tweenQueueSystem;
}
}

View File

@ -0,0 +1 @@
uid://iii3wfto4t5b

View File

@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://ckm3d6k08a72u"]
[ext_resource type="Script" uid="uid://iii3wfto4t5b" path="res://systems/weapon/WeaponSystem.cs" id="1_csqwk"]
[sub_resource type="CylinderMesh" id="CylinderMesh_q5h8a"]
top_radius = 0.01
bottom_radius = 0.01
height = 1.0
[node name="Weapon" type="MeshInstance3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
mesh = SubResource("CylinderMesh_q5h8a")
script = ExtResource("1_csqwk")