コード例 #1
0
        // Get ready for starting game, adding nodes for starting
        void Get_Ready()
        {
            int i = mygame.snake_length;

            while (i > 0)
            {
                mygame.snake_area_x.Add_Node(mygame.node_x);
                mygame.snake_area_y.Add_Node(mygame.node_y);
                mygame.Add_Snake_Node(mygame.node_x, mygame.node_y);
                i--;
                mygame.node_x++;
            }
            mygame.node_x--;
        }