Beispiel #1
0
        //一下一大堆代码,就是更新函数

        void updataBlock1_1(int x, int y)
        {
            if (x < 0 || y < 0 || x > 399 || y > 399)
            {
                block1_1.Text = "X"; return;
            }
            block1_1.Text = myWorld.showBlock(x, y);
            setColorByType(block1_1, myWorld.getBlockType(x, y));
        }