allowed more rain!
This commit is contained in:
@@ -45,8 +45,11 @@ public class Level {
|
||||
}
|
||||
|
||||
private void MakeItRain(float rainAmount) {
|
||||
if (GD.Randf() < rainAmount) {
|
||||
WritePixel<Water>((int)(GD.Randi() % SizeX), 0, 1);
|
||||
int rainDrops = (int)Math.Round(rainAmount);
|
||||
|
||||
for (int i = 0; i <= rainDrops; i++) {
|
||||
if (GD.Randf() < rainAmount)
|
||||
WritePixel<Water>((int)(GD.Randi() % SizeX), 0, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user