Files
FOU/Scripts/Elements/Dirt.cs

21 lines
470 B
C#

using Godot;
namespace FOU.Scripts.Elements;
public class Dirt : Solid {
public Dirt(int x, int y, ref Level level) : base(x, y, ref level) {
Color = AddColorVariance(Colors.Brown);
Density = 10;
DiffuseSpeed = 50;
}
public override bool Update(int currentFrame) {
if (!base.Update(currentFrame)) return false;
Tick();
return true; // not necessarily end, subclasses could do some more things
}
}