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)); } } }
public Make(Map map, Snake snake) { this.map = map; this.snake = snake; }
protected SnakeBody[] sb = new SnakeBody[100]; // 뱀 몸통객체 저장용 배열 #endregion Fields #region Constructors public Snake(Map map) { this.map = map; }