fixed rain

This commit is contained in:
2025-04-27 15:31:20 +02:00
parent 2e4fc22263
commit d9bde10c3c
3 changed files with 13 additions and 5 deletions

View File

@@ -9,14 +9,21 @@ public partial class Main : Node2D {
[Export] public int BrushSize = 5;
[Export] public float TextureResolution = 0.5f;
[Export] public int ChunksPerAxis = 2;
[Export] public float RainAmount = 0;
[Export] public float rainAmount = 0;
public static Main Instance;
public Level Level;
private TextureRect mLevelDrawer;
private bool enableRain;
private float rainAmount;
public float RainAmount {
get => rainAmount;
set {
rainAmount = value;
Level?.SetRainAmount(rainAmount);
}
}
public override void _Ready() {
Level = new Level(this, (int)(GetViewportRect().Size.X * TextureResolution),