added density

code improvements
This commit is contained in:
2023-12-02 00:45:09 +01:00
parent 8278312aee
commit eb94c3bef9
4 changed files with 22 additions and 10 deletions

View File

@@ -5,8 +5,8 @@ namespace FOU.Scripts.Elements;
public class Dirt : Solid {
public Dirt(int x, int y, ref Level level) : base(x, y, ref level) {
Color = Colors.Brown;
Color = AddColorVariance(Color);
Color = AddColorVariance(Colors.Brown);
Density = 10;
}
public override bool Update(int currentFrame) {