2D Character and weapons

This commit is contained in:
Marco 2025-06-17 11:57:59 +02:00
commit cc9c4e5aa1
37 changed files with 1115 additions and 91 deletions

View file

@ -7,10 +7,11 @@ using Cirno.Scripts;
using Cirno.Scripts.Components;
using Cirno.Scripts.Controllers;
using Cirno.Scripts.Resources;
using Cirno.Scripts.Weapons;
public partial class Bullet : Area2D
public partial class Bullet : Area2D, IBullet
{
[Export] public float Speed = 1900f;
[Export] public float Speed { get; set; } = 1900f;
public BulletOwner BulletOwner => _bulletInfo?.Owner ?? BulletOwner.None;
@ -336,21 +337,4 @@ public partial class Bullet : Area2D
//QueueFree();
PoolingManager.Instance.DisableBullet(this);
}
}
public enum BulletOwner
{
None,
Player,
Enemy
}
public enum DamageType
{
Neutral,
Ballistic,
Fire,
Ice,
Explosive,
Acid
}