// Constructor
        public GameLocal()
        {
            InitializeComponent();
            Graphics gemGraphics = new Graphics(bGridMain);
            gemGraphics.Draw();
            ancho = ActualHeight / 4;
            alto = ActualWidth / 4;

            aj.music += new Settings.DelegadoMusica(AjusteMusica);
            // Código de ejemplo para traducir ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemple #2
0
        public Game(Grid bGridMain,int _size)
        {
            int counter=0;
            size = _size;
            numbers = new int[size,size];

            for (int i = 0; i < size; i++)
                for (int j = 0; j < size; j++)
                    numbers[i, j] = counter++;

            blankPosition.X = size - 1;
            blankPosition.Y = size - 1;

            gemImages = new ImageProcessing(size);

            Shuffle();

            gemGraphics = new Graphics(bGridMain,numbers,gemImages.imageGrid);
            gemGraphics.Draw();
        }