Ejemplo n.º 1
0
        /// <summary>
        /// 스테이지 드로잉용
        /// </summary>
        void StageDraw()
        {
            int len        = StageArray.Length;
            int widthsize  = StageArray.GetLength(1);
            int heightsize = StageArray.GetLength(0);

            for (int y = 0; y < heightsize; y++)
            {
                for (int x = 0; x < StageArray.GetLength(1); x++)
                {
                    if (StageArray[y, x] == (int)E_BLOCKTYPE.None)
                    {
                        MyBuffer.Draw(".", x * 2, y);
                    }
                    else if ((int)E_BLOCKTYPE.BLOCK == StageArray[y, x])
                    {
                        MyBuffer.Draw("A", x * 2, y);
                    }
                    else if ((int)E_BLOCKTYPE.WALL == StageArray[y, x])
                    {
                        MyBuffer.Draw("0", x * 2, y);
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public void DrawStage(buffer p_buffer)
        {
            int heightsize = m_CuurentStageInfo.GetLength(0);
            int widthsize  = m_CuurentStageInfo.GetLength(1);

            //m_CuurentStageInfo = new Wall[heightsize, widthsize];


            for (int y = 0; y < heightsize; y++)
            {
                for (int x = 0; x < widthsize; x++)
                {
                    p_buffer.Draw(m_CuurentStageInfo[y, x].DrawAsciiCode, x, y);
                    //if(m_CuurentStageInfo[y,x].WallType ==  )
                }
            }



            //p_buffer.Draw("Test Draw", 0, 0);

            //Wall wallcls = new Wall(3);
            //Wall2 wallstuct = new Wall2(3);
            //Wall2[] wallarray = new Wall2[3]
            //{
            //    new Wall2()
            //    ,new Wall2()
            //    ,new Wall2()
            //};

            //for (int i = 0; i < 3; i++)
            //{
            //    wallarray[i].m_val = 40;
            //}
            //foreach (Wall2 item in wallarray)
            //{
            //    item.m_val = 30;
            //}
            ////wallarray[0] =

            //wallcls.m_val = 7;
            // wallstuct.m_val = 5;

            // Wall tempwallcls = wallcls;
            // Wall2 tempwallstruct = wallstuct;

            // tempwallcls.m_val = 10;
            // tempwallstruct.m_val = 20;

            // // 10, 5, 10, 20
            // Debug.Print("{0}, {1}, {2}, {3}", wallcls.m_val, tempwallcls.m_val
            //     , wallstuct.m_val, tempwallstruct.m_val );
        }
Ejemplo n.º 3
0
 public void DrawBullet(buffer p_buff)
 {
     p_buff.Draw("@", CurrentPos.X, CurrentPos.Y
                 , (short)ConsoleColor.DarkMagenta);
 }
Ejemplo n.º 4
0
 public void DrawTank(buffer p_buff)
 {
     //char model = Model[ (int)m_DirectionVal ];
     p_buff.Draw(Model[(int)m_DirectionVal], CurrentPos.X, CurrentPos.Y, (short)m_Color);
 }