adjusted debug mode

This commit is contained in:
2025-04-27 14:15:14 +02:00
parent 2cd6a757dc
commit abf948a310
4 changed files with 4 additions and 8 deletions

View File

@@ -34,6 +34,7 @@ public class Element {
Chunk = chunk;
lastMove = Engine.GetFramesDrawn();
Active = false;
wasMovedThisTick = true;
}
public bool Active {
@@ -44,7 +45,6 @@ public class Element {
active = value;
Chunk.SetElementActive(this, value);
Moved();
// SetDebugColor(value, new Color(0.2f, 0.2f, 0.2f));
}
}
@@ -109,7 +109,7 @@ public class Element {
}
public void SetDebugColor(Color color) {
if (!Main.Instance.DebugVisualization) return;
if (!Main.Instance.DebugMode) return;
this.color = color;
wasMovedThisTick = true;

View File

@@ -3,7 +3,7 @@ using FOU.Scripts.Elements;
using Godot;
public partial class Main : Node2D {
[Export] public bool DebugVisualization = false;
[Export] public bool DebugMode = false;
[Export] public int BrushSize = 5;
[Export] public float TextureResolution = 0.5f;