added second element type: snow

added simple snow weather
This commit is contained in:
2023-10-17 15:11:07 +02:00
parent 43d121d4da
commit 7670b2982a
8 changed files with 67 additions and 15 deletions

View File

@@ -6,9 +6,7 @@ public class Dirt : Solid {
public Dirt(int x, int y, ref Level level) : base(x, y, ref level) {
Color = Colors.Brown;
Color.R += (GD.Randf() - 1) * MaxColorVariance;
Color.G += (GD.Randf() - 1) * MaxColorVariance;
Color.B += (GD.Randf() - 1) * MaxColorVariance;
Color = AddColorVariance(Color);
}
public override bool Update(int currentFrame) {