added simple sleep state for elements
refactoring
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user