re-enabled rain
This commit is contained in:
@@ -9,16 +9,27 @@ 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.01f;
|
||||
|
||||
[Export]
|
||||
public float RainAmount {
|
||||
get => rainAmount;
|
||||
set {
|
||||
rainAmount = value;
|
||||
mLevel.SetRainAmount(rainAmount);
|
||||
}
|
||||
}
|
||||
|
||||
public static Main Instance;
|
||||
|
||||
private TextureRect mLevelDrawer;
|
||||
private Level mLevel;
|
||||
private bool enableRain;
|
||||
private float rainAmount;
|
||||
|
||||
public override void _Ready() {
|
||||
mLevel = new Level(this, (int)(GetViewportRect().Size.X * TextureResolution),
|
||||
(int)(GetViewportRect().Size.Y * TextureResolution));
|
||||
mLevel.SetRainAmount(rainAmount);
|
||||
mLevelDrawer = GetNode<TextureRect>("CanvasLayer/LevelDrawer");
|
||||
|
||||
Instance = this;
|
||||
|
||||
Reference in New Issue
Block a user