mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-09 16:15:55 +00:00
2D Character and weapons
This commit is contained in:
parent
072f6d0ce6
commit
cc9c4e5aa1
37 changed files with 1115 additions and 91 deletions
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue