Ejemplo n.º 1
0
        static public void LoadLevel()
        {
            egy = new LevelLoader(LevelList.Actual());
            Music.PlayLevel(LevelList.Music());
            #region kekszar
            kekSzar      = new Rectangle();
            kekSzar.Name = "kekSzar";
            //kekSzar.Fill = Brushes.Blue;
            ImageBrush myBrush = new ImageBrush();
            myBrush.ImageSource =
                new BitmapImage(new Uri("pack://application:,,,/Content/Image/player_right.png", UriKind.RelativeOrAbsolute));

            kekSzar.Fill = myBrush;
            kekSzar.HorizontalAlignment = HorizontalAlignment.Left;
            kekSzar.Height            = Meretezes.playermag;
            kekSzar.Width             = Meretezes.playerszell;
            kekSzar.VerticalAlignment = VerticalAlignment.Top;
            kekSzar.Margin            = new Thickness(Character.LastLeft, Character.LastTop, 0, 0);
            kekSzar.SetValue(Grid.RowSpanProperty, 200);
            kekSzar.SetValue(Grid.ColumnSpanProperty, 2000);
            mw.Content = egy.racs;
            g          = (mw.Content as Grid);
            g.Margin   = new Thickness(Character.LastMapLeft, 0, 0, 0);
            g.Children.Add(kekSzar);
            #endregion
            mw.Content = g;
            m          = new Mozgas(kekSzar, egy, g);
        }
Ejemplo n.º 2
0
 private void NextLevel()
 {
     if (bgrun)
     {
         LevelList.NextLevel();
         Character.ReLoad();
         Fokepernyo.LoadLevel();
     }
     bgrun = false;
 }