Exemplo n.º 1
0
 public void DrawMap(PaintEventArgs e, Map map)
 {
     for (int row = 5; row < map.GetMap().GetLength(0) - 5; row++)
     {
         for (int col = 5; col < map.GetMap().GetLength(1) - 5; col++)
         {
             e.Graphics.DrawImage(tiles[map.GetMap()[row, col]],
                 new Rectangle(51 + col * 16, 14 + row * 16, 16, 16));
         }
     }
 }
Exemplo n.º 2
0
 public Make(Map map, Snake snake)
 {
     this.map = map;
     this.snake = snake;
 }
Exemplo n.º 3
0
        protected SnakeBody[] sb = new SnakeBody[100]; // 뱀 몸통객체 저장용 배열

        #endregion Fields

        #region Constructors

        public Snake(Map map)
        {
            this.map = map;
        }