wave flag

This commit is contained in:
Rendo 2025-07-17 00:09:24 +05:00
commit 6d9edc0dc2
7 changed files with 168 additions and 26 deletions

17
scripts/gui/WaveFlag.cs Normal file
View file

@ -0,0 +1,17 @@
using Godot;
public partial class WaveFlag : TextureRect
{
public int waveIndex;
public double anim_time;
public void HugeWaveApproached(int what)
{
if (waveIndex == what)
{
var tween = CreateTween().SetEase(Tween.EaseType.Out).SetTrans(Tween.TransitionType.Cubic).SetParallel();
tween.TweenProperty(this, "anchor_top", 0.1, anim_time);
tween.TweenProperty(this, "anchor_bottom", 0.1, anim_time);
}
}
}