hierarchy rework

fixed swap
This commit is contained in:
2023-11-05 20:09:18 +01:00
parent 7670b2982a
commit 8278312aee
9 changed files with 75 additions and 120 deletions

View File

@@ -31,6 +31,7 @@ public partial class Main : Node2D {
float mappedX = mouse.X / GetViewportRect().Size.X * mLevel.SizeX;
float mappedY = mouse.Y / GetViewportRect().Size.Y * mLevel.SizeY;
GD.Print($"click: {mouse}");
mLevel.WritePixel<Dirt>((int)mappedX, (int)mappedY, BrushSize);
}
}