Danmaku system

This commit is contained in:
Marco 2025-02-05 19:41:49 +01:00
commit fdec052c16
38 changed files with 924 additions and 9 deletions

View file

@ -0,0 +1,14 @@
using Godot;
namespace Cirno.Scripts.Resources;
[GlobalClass]
public partial class DecreasingSpeedModifier : Resource, IBulletModifier
{
[Export] private float decreaseRate = 0.1f;
public float ModifySpeed(float baseSpeed, int bulletIndex)
{
return Mathf.Max(0, baseSpeed - (decreaseRate * bulletIndex));
}
}