示例#1
0
        public override void _Ready()
        {
            walker = new Walker();
            walker.SetXY(GetViewportRect().Size / 2);
            AddChild(walker);

            var canvas = new DrawCanvas((pen) => pen.DrawRect(walker.GetStepRect(), Colors.LightCyan, true));

            canvas.QueueClearDrawing(Color.Color8(45, 45, 45));
            AddChild(canvas);
        }