20 lines
443 B
C#
20 lines
443 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;
|
|
}
|
|
|
|
public override bool Update(int currentFrame) {
|
|
if (!base.Update(currentFrame)) return false;
|
|
|
|
Tick();
|
|
|
|
return true; // not necessarily end, subclasses could do some more things
|
|
}
|
|
}
|