added simple sleep state for elements

refactoring
This commit is contained in:
2024-03-23 18:47:24 +01:00
parent 015f86cec1
commit d44412c666
9 changed files with 76 additions and 41 deletions

View File

@@ -3,10 +3,14 @@ using FOU.Scripts.Elements;
using Godot;
public partial class Main : Node2D {
[Export] public bool DebugVisualization = false;
[Export] public int BrushSize = 5;
[Export] public float TextureResolution = 0.5f;
[Export] public float RainAmount = 0.01f;
public static Main Instance;
private TextureRect mLevelDrawer;
private Level mLevel;
@@ -15,6 +19,8 @@ public partial class Main : Node2D {
(int)(GetViewportRect().Size.Y * TextureResolution), this
);
mLevelDrawer = GetNode<TextureRect>("CanvasLayer/LevelDrawer");
Instance = this;
}
public override void _Process(double delta) {