Initial commit

This commit is contained in:
2026-01-17 18:33:45 -06:00
commit 673bdc0396
45 changed files with 856 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
using Godot;
public partial class ProjectileBase : Area2D
{
[Export] public float Speed { get; set; }
protected CharacterBase? Character;
public override void _Ready()
{
if (Character is null)
{
QueueFree();
}
}
void OnBodyEntered(Node body)
{
if (body == Character)
{
// Ignore self
return;
}
QueueFree();
}
public void Spawn(CharacterBase character)
{
Character = character;
Position = character.GlobalPosition;
Rotation = character.FacingRotation;
TopLevel = false;
}
}