hierarchy rework
fixed swap
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user